Skip to content

Commit

Permalink
Fix compil if not IMGUI_TEST_ENGINE_WITH_PYTHON_GIL
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Jan 18, 2024
1 parent 2449df4 commit dc88d1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hello_imgui/internal/backend_impls/abstract_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
#include "imgui_internal.h"

#include "hello_imgui_test_engine_integration/test_engine_integration.h"
#include "imgui_test_engine/imgui_te_python_gil.h"

#ifdef IMGUI_TEST_ENGINE_WITH_PYTHON_GIL
#include "imgui_test_engine/imgui_te_python_gil.h"
#define SCOPED_RELEASE_GIL_ON_MAIN_THREAD ImGuiTestEnginePythonGIL::ReleaseGilOnMainThread_Scoped _gilRelease
#else
#define SCOPED_RELEASE_GIL_ON_MAIN_THREAD (void)
#define SCOPED_RELEASE_GIL_ON_MAIN_THREAD
#endif

#include <chrono>
Expand Down

0 comments on commit dc88d1f

Please sign in to comment.