MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / lua_pushstring

Function lua_pushstring

examples/ThirdPartyLibs/lua-5.2.3/src/lapi.c:552–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550}
551
552LUA_API const char *lua_pushstring(lua_State *L, const char *s)
553{
554 if (s == NULL)
555 {
556 lua_pushnil(L);
557 return NULL;
558 }
559 else
560 {
561 TString *ts;
562 lua_lock(L);
563 luaC_checkGC(L);
564 ts = luaS_new(L, s);
565 setsvalue2s(L, L->top, ts);
566 api_incr_top(L);
567 lua_unlock(L);
568 return getstr(ts);
569 }
570}
571
572LUA_API const char *lua_pushvfstring(lua_State *L, const char *fmt,
573 va_list argp)

Callers 15

getargsFunction · 0.85
dolibraryFunction · 0.85
pushlineFunction · 0.85
luaB_typeFunction · 0.85
finishpcallFunction · 0.85
luaL_fileresultFunction · 0.85
luaL_execresultFunction · 0.85
luaL_getmetafieldFunction · 0.85
luaL_tolstringFunction · 0.85
luaL_requirefFunction · 0.85
ll_loadFunction · 0.85
ll_symFunction · 0.85

Calls 2

lua_pushnilFunction · 0.85
luaS_newFunction · 0.85

Tested by

no test coverage detected