MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lua_pushlstring

Function lua_pushlstring

freebsd/contrib/openzfs/module/lua/lapi.c:498–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

str_subFunction · 0.70
push_onecaptureFunction · 0.70
add_valueFunction · 0.70
luaL_pushresultFunction · 0.70
luaL_findtableFunction · 0.70

Calls 1

luaS_newlstrFunction · 0.70

Tested by

no test coverage detected