Skip to content

Commit 5b3d81b

Browse files
committed
define a macro for error stream
1 parent ca85f0d commit 5b3d81b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hnswlib/hnswlib.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
#pragma once
2+
3+
#ifndef HNSWLIB_ERR_OVERRIDE
4+
#define HNSWERR std::cerr
5+
#else
6+
#define HNSWERR HNSWLIB_ERR_OVERRIDE
7+
#endif
8+
29
#ifndef NO_MANUAL_VECTORIZATION
310
#if (defined(__SSE__) || _M_IX86_FP > 0 || defined(_M_AMD64) || defined(_M_X64))
411
#define USE_SSE

0 commit comments

Comments
 (0)