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

Function str_dump

other_src/lua/src/lstrlib.cpp:147–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146
147static int str_dump (lua_State *L) {
148 luaL_Buffer b;
149 luaL_checktype(L, 1, LUA_TFUNCTION);
150 lua_settop(L, 1);
151 luaL_buffinit(L,&b);
152 if (lua_dump(L, writer, &b) != 0)
153 luaL_error(L, "unable to dump given function");
154 luaL_pushresult(&b);
155 return 1;
156}
157
158
159

Callers

nothing calls this directly

Calls 6

luaL_checktypeFunction · 0.70
lua_settopFunction · 0.70
luaL_buffinitFunction · 0.70
lua_dumpFunction · 0.70
luaL_errorFunction · 0.70
luaL_pushresultFunction · 0.70

Tested by

no test coverage detected