File tree 1 file changed +9
-7
lines changed 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 9
9
10
10
NAMESPACE_BEGIN (drjit)
11
11
12
+ #if !defined(DRJIT_EXPORT)
13
+ #if defined(_MSC_VER)
14
+ #define DRJIT_EXPORT __declspec (dllexport)
15
+ #else
16
+ #define DRJIT_EXPORT __attribute__ ((visibility(" default" )))
17
+ #endif
18
+ #endif
19
+
12
20
// / Interface for traversing C++ objects.
13
- struct TraversableBase : nanobind::intrusive_base {
21
+ struct DRJIT_EXPORT TraversableBase : public nanobind::intrusive_base {
14
22
virtual void traverse_1_cb_ro (void *, void (*)(void *, uint64_t )) const = 0;
15
23
virtual void traverse_1_cb_rw (void *, uint64_t (*)(void *, uint64_t )) = 0;
16
24
};
@@ -70,10 +78,4 @@ public: \
70
78
drjit::traverse_py_cb_rw (this , payload, fn); \
71
79
}
72
80
73
- #if defined(_MSC_VER)
74
- #define DRJIT_EXPORT __declspec (dllexport)
75
- #else
76
- #define DRJIT_EXPORT __attribute__ ((visibility(" default" )))
77
- #endif
78
-
79
81
NAMESPACE_END (drjit)
You can’t perform that action at this time.
0 commit comments