| 3950 | Window* g_the_window = nullptr; |
| 3951 | } |
| 3952 | void* window_create() { |
| 3953 | if (g_the_window == nullptr) { |
| 3954 | g_the_window = new Window(); |
| 3955 | if (std::getenv("STRATA_METAL_PROFILE")) std::atexit([] { if (g_the_window) g_the_window->print_prof(); }); |
| 3956 | } |
| 3957 | return g_the_window; |
| 3958 | } |
| 3959 | void window_destroy(void* w) { |
| 3960 | if (w != nullptr && w == g_the_window) { |
| 3961 | if (g_stream_window == g_the_window) { |
no test coverage detected