MCPcopy Create free account
hub / github.com/SOUI2/soui / lua_pushlstring

Function lua_pushlstring

third-part/lua-52/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 12

Utf8ToWFunction · 0.85
Utf8ToTFunction · 0.85
str_subFunction · 0.85
push_onecaptureFunction · 0.85
add_valueFunction · 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