MCPcopy Create free account
hub / github.com/casssoft/imgui_lua_bindings / LoadImguiBindings

Function LoadImguiBindings

imgui_lua_bindings.cpp:500–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498
499
500void LoadImguiBindings() {
501 if (!lState) {
502 fprintf(stderr, "You didn't assign the global lState, either assign that or refactor LoadImguiBindings and RunString\n");
503 }
504 lua_newtable(lState);
505 luaL_setfuncs(lState, imguilib, 0);
506 PushImguiEnums(lState, "constant");
507 lua_setglobal(lState, "imgui");
508}

Callers

nothing calls this directly

Calls 1

PushImguiEnumsFunction · 0.85

Tested by

no test coverage detected