MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / lua_pushlstring

Function lua_pushlstring

ThirdParty/lua/lua/lapi.c:472–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470
471
472LUA_API const char *lua_pushlstring (lua_State *L, const char *s, size_t len) {
473 TString *ts;
474 lua_lock(L);
475 luaC_checkGC(L);
476 ts = luaS_newlstr(L, s, len);
477 setsvalue2s(L, L->top, ts);
478 api_incr_top(L);
479 lua_unlock(L);
480 return getstr(ts);
481}
482
483
484LUA_API const char *lua_pushstring (lua_State *L, const char *s) {

Callers 11

str_subFunction · 0.85
push_onecaptureFunction · 0.85
add_valueFunction · 0.85
str_unpackFunction · 0.85
luaL_pushresultFunction · 0.85
luaL_findtableFunction · 0.85
pushnexttemplateFunction · 0.85
loadfuncFunction · 0.85
searcher_CrootFunction · 0.85
modinitFunction · 0.85
test_eofFunction · 0.85

Calls 1

luaS_newlstrFunction · 0.85

Tested by 1

test_eofFunction · 0.68