MCPcopy Create free account
hub / github.com/axmolengine/axmol / json_encode_exception

Function json_encode_exception

3rdparty/lua/lua-cjson/lua_cjson.c:459–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457/* ===== ENCODING ===== */
458
459static void json_encode_exception(lua_State *l, json_config_t *cfg, strbuf_t *json, int lindex,
460 const char *reason)
461{
462 if (!cfg->encode_keep_buffer)
463 strbuf_free(json);
464 luaL_error(l, "Cannot serialise %s: %s",
465 lua_typename(l, lua_type(l, lindex)), reason);
466}
467
468/* json_append_string args:
469 * - lua_State

Callers 4

lua_array_lengthFunction · 0.85
json_append_numberFunction · 0.85
json_append_objectFunction · 0.85
json_append_dataFunction · 0.85

Calls 4

strbuf_freeFunction · 0.85
luaL_errorFunction · 0.85
lua_typenameFunction · 0.85
lua_typeFunction · 0.85

Tested by

no test coverage detected