MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_pushlstring

Function lua_pushlstring

third-party/lua-5.2.4/src/lapi.c:501–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499
500
501LUA_API const char *lua_pushlstring (lua_State *L, const char *s, size_t len) {
502 TString *ts;
503 lua_lock(L);
504 luaC_checkGC(L);
505 ts = luaS_newlstr(L, s, len);
506 setsvalue2s(L, L->top, ts);
507 api_incr_top(L);
508 lua_unlock(L);
509 return getstr(ts);
510}
511
512
513LUA_API const char *lua_pushstring (lua_State *L, const char *s) {

Callers 10

str_subFunction · 0.70
push_onecaptureFunction · 0.70
add_valueFunction · 0.70
luaL_pushresultFunction · 0.70
luaL_findtableFunction · 0.70
pushnexttemplateFunction · 0.70
loadfuncFunction · 0.70
searcher_CrootFunction · 0.70
modinitFunction · 0.70
test_eofFunction · 0.70

Calls 1

luaS_newlstrFunction · 0.70

Tested by 1

test_eofFunction · 0.56