MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / os_pushresult

Function os_pushresult

other_src/lua/src/loslib.cpp:23–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23static int os_pushresult (lua_State *L, int i, const char *filename) {
24 int en = errno; /* calls to Lua API may change this value */
25 if (i) {
26 lua_pushboolean(L, 1);
27 return 1;
28 }
29 else {
30 lua_pushnil(L);
31 lua_pushfstring(L, "%s: %s", filename, strerror(en));
32 lua_pushinteger(L, en);
33 return 3;
34 }
35}
36
37
38static int os_execute (lua_State *L) {

Callers 2

os_removeFunction · 0.70
os_renameFunction · 0.70

Calls 4

lua_pushbooleanFunction · 0.70
lua_pushnilFunction · 0.70
lua_pushfstringFunction · 0.70
lua_pushintegerFunction · 0.70

Tested by

no test coverage detected