MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / fchecksize

Function fchecksize

lib/lua/src/lundump.c:284–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282
283
284static void fchecksize (LoadState *S, size_t size, const char *tname) {
285 if (loadByte(S) != size)
286 error(S, luaO_pushfstring(S->L, "%s size mismatch", tname));
287}
288
289
290#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