MCPcopy Create free account
hub / github.com/Niko1221/Strata / window_create

Function window_create

engine/metal/src/engine/window.cpp:3952–3958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3950Window* g_the_window = nullptr;
3951}
3952void* 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}
3959void window_destroy(void* w) {
3960 if (w != nullptr && w == g_the_window) {
3961 if (g_stream_window == g_the_window) {

Callers 4

verify.cppFile · 0.85
window_ensureFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

print_profMethod · 0.80

Tested by

no test coverage detected