MCPcopy Create free account
hub / github.com/DFHack/dfhack / fchecksize

Function fchecksize

depends/lua/src/lundump.c:235–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233
234
235static void fchecksize (LoadState *S, size_t size, const char *tname) {
236 if (LoadByte(S) != size)
237 error(S, luaO_pushfstring(S->L, "%s size mismatch in", tname));
238}
239
240
241#define checksize(S,t) fchecksize(S,sizeof(t),#t)

Callers

nothing calls this directly

Calls 3

LoadByteFunction · 0.85
luaO_pushfstringFunction · 0.85
errorFunction · 0.70

Tested by

no test coverage detected