File: error_impl.h

package info (click to toggle)
faiss 1.11.0-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 8,360 kB
  • sloc: cpp: 83,959; python: 27,238; sh: 905; ansic: 418; makefile: 38
file content (15 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

// -*- c++ -*-

#include <exception>

/** global variable for holding the last exception thrown by
 * calls to Faiss functions through the C API
 */
extern thread_local std::exception_ptr faiss_last_exception;