MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaopen_base

Function luaopen_base

freebsd/contrib/openzfs/module/lua/lbaselib.c:279–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277
278
279LUAMOD_API int luaopen_base (lua_State *L) {
280 /* set global _G */
281 lua_pushglobaltable(L);
282 lua_pushglobaltable(L);
283 lua_setfield(L, -2, "_G");
284 /* open lib into global table */
285 luaL_setfuncs(L, base_funcs, 0);
286 lua_pushliteral(L, LUA_VERSION);
287 lua_setfield(L, -2, "_VERSION"); /* set global _VERSION */
288 return 1;
289}
290
291#if defined(_KERNEL)
292

Callers 1

zcp_evalFunction · 0.50

Calls 2

lua_setfieldFunction · 0.70
luaL_setfuncsFunction · 0.70

Tested by

no test coverage detected