MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / pusherror

Function pusherror

Source/Misc/lua/src/lua.c:12880–12888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12878
12879
12880static void pusherror (lua_State *L) {
12881int error = GetLastError();
12882char buffer[128];
12883if (FormatMessageA(FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_FROM_SYSTEM,
12884NULL, error, 0, buffer, sizeof(buffer), NULL))
12885lua_pushstring(L, buffer);
12886else
12887lua_pushfstring(L, "system error %d\n", error);
12888}
12889
12890static void ll_unloadlib (void *lib) {
12891FreeLibrary((HINSTANCE)lib);

Callers 2

ll_loadFunction · 0.85
ll_symFunction · 0.85

Calls 2

lua_pushstringFunction · 0.85
lua_pushfstringFunction · 0.85

Tested by

no test coverage detected