| 291 | } |
| 292 | |
| 293 | bool wasm_rt_is_initialized(void) { |
| 294 | #if WASM_RT_STACK_EXHAUSTION_HANDLER |
| 295 | if (!os_has_altstack_installed()) { |
| 296 | return false; |
| 297 | } |
| 298 | #endif |
| 299 | #if WASM_RT_INSTALL_SIGNAL_HANDLER |
| 300 | return g_signal_handler_installed; |
| 301 | #else |
| 302 | return true; |
| 303 | #endif |
| 304 | } |
| 305 | |
| 306 | void wasm_rt_free(void) { |
| 307 | assert(wasm_rt_is_initialized()); |
no test coverage detected