MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / cliSetFunc

Function cliSetFunc

Source/Basic/Application.cpp:387–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387void cliSetFunc(lua_State* L, const char* name, lua_CFunction func) {
388 lua_pushcfunction(L, func);
389 lua_setfield(L, -2, name);
390}
391
392void cliRegisterLua(lua_State* L, int argc, char* argv[], const fs::path& scriptPath, int cliIndex, const std::optional<fs::path>& assetPath) {
393 luaL_openlibs(L);

Callers 1

cliRegisterLuaFunction · 0.85

Calls 1

lua_setfieldFunction · 0.50

Tested by

no test coverage detected