MCPcopy Create free account
hub / github.com/crownengine/crown / lua_save_data_write_key

Function lua_save_data_write_key

src/lua/lua_api.cpp:593–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591}
592
593static void lua_save_data_write_key(StringStream &sjson, lua_State *L, int i)
594{
595 if (lua_type(L, i) != LUA_TSTRING)
596 luaL_error(L, "Unsupported save data key type");
597
598 size_t len = 0;
599 const char *str = lua_tolstring(L, i, &len);
600 CE_ENSURE(str != NULL);
601 lua_save_data_write_string(sjson, str, (u32)len);
602}
603
604static void lua_save_data_write_vector3(StringStream &sjson, const char *type, const Vector3 &v)
605{

Callers 1

Calls 4

lua_typeFunction · 0.50
luaL_errorFunction · 0.50
lua_tolstringFunction · 0.50

Tested by

no test coverage detected