MCPcopy Create free account
hub / github.com/defold/defold / lua_pushlstring

Function lua_pushlstring

engine/lua/src/lua/lapi.c:445–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443
444
445LUA_API void lua_pushlstring (lua_State *L, const char *s, size_t len) {
446 lua_lock(L);
447 luaC_checkGC(L);
448 setsvalue2s(L, L->top, luaS_newlstr(L, s, len));
449 api_incr_top(L);
450 lua_unlock(L);
451}
452
453
454LUA_API void lua_pushstring (lua_State *L, const char *s) {

Callers 15

CompScriptOnInputFunction · 0.85
Zlib_InflateFunction · 0.85
Zlib_DeflateFunction · 0.85
Sys_LoadResourceFunction · 0.85
Sys_SerializeFunction · 0.85
SetGlobalFunction · 0.85
GetMetaFunctionFunction · 0.85
ResolvePathFunction · 0.85
GetUserDataFunction · 0.85
PCallInternalFunction · 0.85
PushHashWeakTableKeyFunction · 0.85
Json_EncodeFunction · 0.85

Calls 1

luaS_newlstrFunction · 0.85

Tested by 3

TEST_FFunction · 0.68
TEST_FFunction · 0.68
test_eofFunction · 0.68