MCPcopy Create free account
hub / github.com/F-Stack/f-stack / undefgoto

Function undefgoto

freebsd/contrib/openzfs/module/lua/lparser.c:461–467  ·  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

459** message when label name is a reserved word (which can only be 'break')
460*/
461static l_noret undefgoto (LexState *ls, Labeldesc *gt) {
462 const char *msg = isreserved(gt->name)
463 ? "<%s> at line %d not inside a loop"
464 : "no visible label " LUA_QS " for <goto> at line %d";
465 msg = luaO_pushfstring(ls->L, msg, getstr(gt->name), gt->line);
466 semerror(ls, msg);
467}
468
469
470static void leaveblock (FuncState *fs) {

Callers 1

leaveblockFunction · 0.85

Calls 2

semerrorFunction · 0.85
luaO_pushfstringFunction · 0.70

Tested by

no test coverage detected