c_api/error_impl.h
raw| 1 | /* |
| 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | * |
| 4 | * This source code is licensed under the MIT license found in the |
| 5 | * LICENSE file in the root directory of this source tree. |
| 6 | */ |
| 7 | |
| 8 | // -*- c++ -*- |
| 9 | |
| 10 | #include <exception> |
| 11 | |
| 12 | /** global variable for holding the last exception thrown by |
| 13 | * calls to Faiss functions through the C API |
| 14 | */ |
| 15 | extern thread_local std::exception_ptr faiss_last_exception; |