MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / undefgoto

Function undefgoto

src/Chain/libraries/glua/lparser.cpp:484–490  ·  view source on GitHub ↗

** generates an error for an undefined 'goto'; choose appropriate ** message when label name is a reserved word (which can only be 'break') */

Source from the content-addressed store, hash-verified

482** message when label name is a reserved word (which can only be 'break')
483*/
484static l_noret undefgoto(LexState *ls, Labeldesc *gt) {
485 const char *msg = isreserved(gt->name)
486 ? "<%s> at line %d not inside a loop"
487 : "no visible label '%s' for <goto> at line %d";
488 msg = luaO_pushfstring(ls->L, msg, getstr(gt->name), gt->line);
489 semerror(ls, msg);
490}
491
492
493static void leaveblock(FuncState *fs) {

Callers 1

leaveblockFunction · 0.85

Calls 2

luaO_pushfstringFunction · 0.85
semerrorFunction · 0.85

Tested by

no test coverage detected