MCPcopy Create free account
hub / github.com/Tencent/sluaunreal / lua_pushstring

Function lua_pushstring

Plugins/slua_unreal/External/lua/lapi.cpp:489–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487
488
489LUA_API const char *lua_pushstring (lua_State *L, const char *s) {
490 lua_lock(L);
491 if (s == NULL)
492 setnilvalue(L->top);
493 else {
494 TString *ts;
495 ts = luaS_new(L, s);
496 setsvalue2s(L, L->top, ts);
497 s = getstr(ts); /* internal copy's address */
498 }
499 api_incr_top(L);
500 luaC_checkGC(L);
501 lua_unlock(L);
502 return s;
503}
504
505
506LUA_API const char *lua_pushvfstring (lua_State *L, const char *fmt,

Callers 15

inet_openFunction · 0.85
inet_global_tohostnameFunction · 0.85
inet_global_getnameinfoFunction · 0.85
inet_global_toipFunction · 0.85
inet_global_getaddrinfoFunction · 0.85
inet_global_gethostnameFunction · 0.85
inet_meth_getpeernameFunction · 0.85
inet_meth_getsocknameFunction · 0.85
inet_pushresolvedFunction · 0.85
unix_meth_acceptFunction · 0.85
unix_meth_bindFunction · 0.85
unix_meth_connectFunction · 0.85

Calls 1

luaS_newFunction · 0.85

Tested by

no test coverage detected