MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / checkliteral

Function checkliteral

3rd/lua-5.4.3/src/lundump.c:273–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271
272
273static void checkliteral (LoadState *S, const char *s, const char *msg) {
274 char buff[sizeof(LUA_SIGNATURE) + sizeof(LUAC_DATA)]; /* larger than both */
275 size_t len = strlen(s);
276 loadVector(S, buff, len);
277 if (memcmp(s, buff, len) != 0)
278 error(S, msg);
279}
280
281
282static void fchecksize (LoadState *S, size_t size, const char *tname) {

Callers 1

checkHeaderFunction · 0.85

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected