Fix regression for C++ / CLANG
This commit is contained in:
1 parent
144182b540
commit
f26da68aa4
1 file changed
+3
-3
+3
-3
@@ -458,16 +458,16 @@ m_worker_count(m_worker_t g)
|
|||||||
#define M_WORKER_SPAWN(_block, _input, _core, _output) \
|
#define M_WORKER_SPAWN(_block, _input, _core, _output) \
|
||||||
M_WORK3R_DEF_DATA(_input, _output) \
|
M_WORK3R_DEF_DATA(_input, _output) \
|
||||||
M_WORK3R_DEF_SUBBLOCK(_input, _output, _core) \
|
M_WORK3R_DEF_SUBBLOCK(_input, _output, _core) \
|
||||||
worker_spawn_block ((_block), M_WORK3R_SPAWN_SUBFUNC_NAME, &M_WORK3R_SPAWN_DATA_NAME)
|
m_work3r_spawn_block ((_block), M_WORK3R_SPAWN_SUBFUNC_NAME, &M_WORK3R_SPAWN_DATA_NAME)
|
||||||
#elif M_USE_WORKER_CPP_FUNCTION
|
#elif M_USE_WORKER_CPP_FUNCTION
|
||||||
// TODO: Explicit pass all arguments by reference.
|
// TODO: Explicit pass all arguments by reference.
|
||||||
#define M_WORKER_SPAWN(_block, _input, _core, _output) \
|
#define M_WORKER_SPAWN(_block, _input, _core, _output) \
|
||||||
worker_spawn_function ((_block), [&](void *param) {(void)param ; _core } , NULL)
|
m_work3r_spawn_function ((_block), [&](void *param) {(void)param ; _core } , NULL)
|
||||||
#else
|
#else
|
||||||
#define M_WORKER_SPAWN(_block, _input, _core, _output) \
|
#define M_WORKER_SPAWN(_block, _input, _core, _output) \
|
||||||
M_WORK3R_DEF_DATA(_input, _output) \
|
M_WORK3R_DEF_DATA(_input, _output) \
|
||||||
M_WORK3R_DEF_SUBFUNC(_input, _output, _core) \
|
M_WORK3R_DEF_SUBFUNC(_input, _output, _core) \
|
||||||
worker_spawn ((_block), M_WORK3R_SPAWN_SUBFUNC_NAME, &M_WORK3R_SPAWN_DATA_NAME)
|
m_worker_spawn ((_block), M_WORK3R_SPAWN_SUBFUNC_NAME, &M_WORK3R_SPAWN_DATA_NAME)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define M_WORK3R_SPAWN_STRUCT_NAME M_C(m_work3r_data_s_, __LINE__)
|
#define M_WORK3R_SPAWN_STRUCT_NAME M_C(m_work3r_data_s_, __LINE__)
|
||||||
|
|||||||
Reference in new issue
Block a user