Skip to content

Commit 63b71d1

Browse files
committed
Added a new macro for allowing default values in the C++ API.
1 parent 0cb4666 commit 63b71d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernels/rtcore_config.h.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
# define RTC_NAMESPACE_END }
3737
# define RTC_NAMESPACE_USE using namespace @EMBREE_API_NAMESPACE@;
3838
# define RTC_API_EXTERN_C
39+
# define RTC_DEFAULT_VALUE(value) = value
3940
# undef EMBREE_API_NAMESPACE
4041
#else
4142
# define RTC_NAMESPACE_BEGIN
@@ -46,6 +47,7 @@
4647
# else
4748
# define RTC_API_EXTERN_C
4849
# endif
50+
# define RTC_DEFAULT_VALUE(value)
4951
#endif
5052

5153
#if defined(ISPC)

0 commit comments

Comments
 (0)