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

Function lua_pushstring

third-part/lua-52/src/lapi.c:513–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511
512
513LUA_API const char *lua_pushstring (lua_State *L, const char *s) {
514 if (s == NULL) {
515 lua_pushnil(L);
516 return NULL;
517 }
518 else {
519 TString *ts;
520 lua_lock(L);
521 luaC_checkGC(L);
522 ts = luaS_new(L, s);
523 setsvalue2s(L, L->top, ts);
524 api_incr_top(L);
525 lua_unlock(L);
526 return getstr(ts);
527 }
528}
529
530
531LUA_API const char *lua_pushvfstring (lua_State *L, const char *fmt,

Callers 15

invokeMethod · 0.85
class_addFunction · 0.85
class_inhFunction · 0.85
class_conFunction · 0.85
class_defFunction · 0.85
class_memFunction · 0.85
setMethod · 0.85
getMethod · 0.85
tostring_s64Function · 0.85
init_s64Method · 0.85
tostring_u64Function · 0.85
init_u64Method · 0.85

Calls 2

lua_pushnilFunction · 0.85
luaS_newFunction · 0.85

Tested by

no test coverage detected