MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / luaopen_string

Function luaopen_string

other_src/lua/src/lstrlib.cpp:863–871  ·  view source on GitHub ↗

** Open string library */

Source from the content-addressed store, hash-verified

861** Open string library
862*/
863LUALIB_API int luaopen_string (lua_State *L) {
864 luaL_register(L, LUA_STRLIBNAME, strlib);
865#if defined(LUA_COMPAT_GFIND)
866 lua_getfield(L, -1, "gmatch");
867 lua_setfield(L, -2, "gfind");
868#endif
869 createmetatable(L);
870 return 1;
871}
872

Callers

nothing calls this directly

Calls 3

lua_getfieldFunction · 0.70
lua_setfieldFunction · 0.70
createmetatableFunction · 0.70

Tested by

no test coverage detected