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

Function pusherror

other_src/lua/src/loadlib.cpp:127–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126
127static void pusherror (lua_State *L) {
128 int error = GetLastError();
129 char buffer[128];
130 if (FormatMessageA(FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_FROM_SYSTEM,
131 NULL, error, 0, buffer, sizeof(buffer), NULL))
132 lua_pushstring(L, buffer);
133 else
134 lua_pushfstring(L, "system error %d\n", error);
135}
136
137static void ll_unloadlib (void *lib) {
138 FreeLibrary((HINSTANCE)lib);

Callers 2

ll_loadFunction · 0.70
ll_symFunction · 0.70

Calls 2

lua_pushstringFunction · 0.70
lua_pushfstringFunction · 0.70

Tested by

no test coverage detected