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

Function str_dump

src/Chain/libraries/glua/lstrlib.cpp:188–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186
187
188static int str_dump(lua_State *L) {
189 luaL_Buffer b;
190 int strip = lua_toboolean(L, 2);
191 luaL_checktype(L, 1, LUA_TFUNCTION);
192 lua_settop(L, 1);
193 luaL_buffinit(L, &b);
194 if (lua_dump(L, writer, &b, strip) != 0)
195 return luaL_error(L, "unable to dump given function");
196 luaL_pushresult(&b);
197 return 1;
198}
199
200
201

Callers

nothing calls this directly

Calls 7

lua_tobooleanFunction · 0.85
luaL_checktypeFunction · 0.85
lua_settopFunction · 0.85
luaL_buffinitFunction · 0.85
lua_dumpFunction · 0.85
luaL_errorFunction · 0.85
luaL_pushresultFunction · 0.85

Tested by

no test coverage detected