Skip to content

Commit fcf2d5e

Browse files
committed
_G.emmy_core
1 parent e419941 commit fcf2d5e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

emmy_core/emmy_core.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,13 @@ extern "C" {
145145
EMMY_CORE_EXPORT int luaopen_emmy_core(struct lua_State* L) {
146146
if (!install_emmy_core(L))
147147
return false;
148-
//luaL_newlib(L, lib);
149148
luaL_newlibtable(L, lib);
150149
luaL_setfuncs(L, lib, 0);
150+
151+
// _G.emmy_core
152+
lua_pushvalue(L, -1);
153+
lua_setglobal(L, "emmy_core");
154+
151155
return 1;
152156
}
153157
}

0 commit comments

Comments
 (0)