| 26 | } |
| 27 | |
| 28 | void callstack(log_internal::System system, LogSeverity::Enum severity) |
| 29 | { |
| 30 | int size = emscripten_get_callstack(EM_LOG_C_STACK | EM_LOG_JS_STACK, NULL, 0); |
| 31 | |
| 32 | char *data = (char *)default_allocator().allocate(size); |
| 33 | emscripten_get_callstack(EM_LOG_C_STACK | EM_LOG_JS_STACK, data, size); |
| 34 | log_internal::logx(severity, system, data); |
| 35 | default_allocator().deallocate(data); |
| 36 | } |
| 37 | |
| 38 | } // namespace debug |
| 39 |
nothing calls this directly
no test coverage detected