| 280 | // to avoid static constructor ordering issues. |
| 281 | struct InitFunc { |
| 282 | InitFunc(void (*init_func)()) : init_func(init_func) { |
| 283 | // This calls the function immediately upon construction, and also registers |
| 284 | // it so that it can be called again on each worker that starts. |
| 285 | init_func(); |
| 286 | _embind_register_bindings(this); |
| 287 | } |
| 288 | void (*init_func)(); |
| 289 | InitFunc* next = nullptr; |
| 290 | }; |
nothing calls this directly
no test coverage detected