Skip to content

Commit

Permalink
fixup! [cimgui-pack] Build imgui_test_engine in cimgui-pack
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed Jun 24, 2024
1 parent ea1defb commit 0b799ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cimgui-pack/test_engine/overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ inline void ScrollToTabItem(ImGuiTestContext* ctx, void* tab_bar, ImGuiID tab_id
}

inline bool TabBarCompareOrder(ImGuiTestContext* ctx, void* tab_bar, const char** tab_order) {
ctx->TabBarCompareOrder(static_cast<ImGuiTabBar*>(tab_bar), tab_order);
return ctx->TabBarCompareOrder(static_cast<ImGuiTabBar*>(tab_bar), tab_order);
}

inline jlcxx::Array<ImGuiTest*> TestsAll(ImGuiTestEngine* engine) {
Expand Down
12 changes: 11 additions & 1 deletion cimgui-pack/test_engine/src/JlGlobals.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,19 @@ struct JlGlobal: public Wrapper {
// defined in ./overrides.h:34:13
t.method("SetRef", static_cast<void (*)(ImGuiTestContext *, void *) >(&SetRef));

DEBUG_MSG("Adding wrapper for void ScrollToTabItem(ImGuiTestContext *, void *, ImGuiID) (" __HERE__ ")");
// signature to use in the veto list: void ScrollToTabItem(ImGuiTestContext *, void *, ImGuiID)
// defined in ./overrides.h:38:13
t.method("ScrollToTabItem", static_cast<void (*)(ImGuiTestContext *, void *, ImGuiID) >(&ScrollToTabItem));

DEBUG_MSG("Adding wrapper for bool TabBarCompareOrder(ImGuiTestContext *, void *, const char **) (" __HERE__ ")");
// signature to use in the veto list: bool TabBarCompareOrder(ImGuiTestContext *, void *, const char **)
// defined in ./overrides.h:42:13
t.method("TabBarCompareOrder", static_cast<bool (*)(ImGuiTestContext *, void *, const char **) >(&TabBarCompareOrder));

DEBUG_MSG("Adding wrapper for jlcxx::Array<ImGuiTest *> TestsAll(ImGuiTestEngine *) (" __HERE__ ")");
// signature to use in the veto list: jlcxx::Array<ImGuiTest *> TestsAll(ImGuiTestEngine *)
// defined in ./overrides.h:38:33
// defined in ./overrides.h:46:33
t.method("TestsAll", static_cast<jlcxx::Array<ImGuiTest *> (*)(ImGuiTestEngine *) >(&TestsAll));
}
};
Expand Down

0 comments on commit 0b799ae

Please sign in to comment.