Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
JSHubPort.cxx
1
35#ifdef __EMSCRIPTEN__
36
37#include <functional>
38
39extern int JSHubPort_debug_port_num;
40int JSHubPort_debug_port_num = 0;
41
43extern "C" void __attribute__((used)) invoke_fnp(std::function<void()> *fp)
44{
45 if (fp && *fp)
46 {
47 (*fp)();
48 }
49}
50
51#endif // __EMSCRIPTEN__