MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / lua_pushstring

Function lua_pushstring

src/vm/luavm/lua/lapi.c:486–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

GetBoolInTableFunction · 0.85
getIntegerInTableFunction · 0.85
getNumberInTableFunction · 0.85
getStringInTableFunction · 0.85
getArrayInTableFunction · 0.85
getStringLogPrintFunction · 0.85
ExGetCurTxInputAssetFuncFunction · 0.85
ExGetAccountAssetFuncFunction · 0.85
luaopen_arrayFunction · 0.85
luaopen_baseFunction · 0.85
createargtableFunction · 0.85
dolibraryFunction · 0.85

Calls 1

luaS_newFunction · 0.85

Tested by

no test coverage detected