MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / checklocal

Function checklocal

third-party/lua-5.5.0/src/lua.c:600–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598
599
600static void checklocal (const char *line) {
601 static const size_t szloc = sizeof("local") - 1;
602 static const char space[] = " \t";
603 line += strspn(line, space); /* skip spaces */
604 if (strncmp(line, "local", szloc) == 0 && /* "local"? */
605 strchr(space, *(line + szloc)) != NULL) { /* followed by a space? */
606 lua_writestringerror("%s\n",
607 "warning: locals do not survive across lines in interactive mode");
608 }
609}
610
611
612/*

Callers 1

multilineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected