How to nest modules into namespaces when registering functions from C in Lua?
snippet in lua

How to nest modules into namespaces when registering functions from C in Lua?

user5664

lua_getglobal(L, "Core");
luaL_newlib(L, subSystem_funcs);
lua_setfield(L, -2, "SubSystem");