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

Function Dump

src/lua/LuaExtras.cpp:275–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273
274
275static int Dump(lua_State* L, lua_Writer writer, void* data, bool strip) {
276 int status;
277 TValue* o;
278 lua_lock(L);
279 api_checknelems(L, 1);
280 o = L->top - 1;
281 if (isLfunction(o)) {
282 status = luaU_dump(L, clvalue(o)->l.p, writer, data, strip ? 1 : 0);
283 }
284 else {
285 status = 1;
286 }
287 lua_unlock(L);
288 return status;
289}
290
291
292int LuaExtras::dump(lua_State* L) {

Callers 1

dumpMethod · 0.85

Calls 1

luaU_dumpFunction · 0.50

Tested by

no test coverage detected