Skip to content

Commit 2ed537a

Browse files
committed
Expose NPY API to C++
1 parent 43b4521 commit 2ed537a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

util/npy.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
#define NPY_MAX_DIMS 10
2727
#define NPY_FLUSH_HEADER_STEP 1024
2828

29+
#ifdef __cplusplus
30+
extern "C" {
31+
#endif
32+
2933
enum npy_dtype {
3034
NPY_DTYPE_INT32,
3135
NPY_DTYPE_FLOAT32,
@@ -83,4 +87,8 @@ DECLARE_NPY_STORE_FUNC(int32, int32_t);
8387
DECLARE_NPY_STORE_FUNC(float32, float);
8488
DECLARE_NPY_STORE_FUNC(float64, double);
8589

90+
#ifdef __cplusplus
91+
}
92+
#endif
93+
8694
#endif /* _UTIL_NPY_H */

0 commit comments

Comments
 (0)