MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / json_destroy_config

Function json_destroy_config

LuaSTGPlus/LuaExtensions/cjson4lua/lua_cjson.c:364–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364static int json_destroy_config(lua_State *l)
365{
366 json_config_t *cfg;
367
368 cfg = lua_touserdata(l, 1);
369 if (cfg)
370 strbuf_free(&cfg->encode_buf);
371 cfg = NULL;
372
373 return 0;
374}
375
376static void json_create_config(lua_State *l)
377{

Callers

nothing calls this directly

Calls 1

strbuf_freeFunction · 0.85

Tested by

no test coverage detected