#pragma once // Each application thread owns its ImGui and ImPlot contexts. On Android an activity recreated in the same process // starts its application thread before the previous one has finished tearing down; with process-wide context pointers // the old thread's DestroyContext reset the pointer the new thread was drawing with. Included through // IMGUI_USER_CONFIG, so imgui.cpp and implot.cpp skip their own global definitions. struct ImGuiContext; struct ImPlotContext; extern thread_local ImGuiContext* ModulesImGuiContext; extern thread_local ImPlotContext* ModulesImPlotContext; #define GImGui ModulesImGuiContext #define GImPlot ModulesImPlotContext