src/menucode.cpp
// afterLoop ***********
// This is the code to be executed every time it's time to switch to
// another program zone, being a program zone currently linked to
// these functions.

afterLoop
This is the code to be executed every time it's time to switch to
another program zone, being a program zone currently linked to
these functions.
afterLoop This is the code to be executed every time it ' s time to switch to another program zone being a program zone currently linked to these functions .
bool MenuLoopCode::afterLoop()
{
	lua_State* lstate;
	int errCode;
	lstate=scriptMan.getLuaObject();
	lua_getglobal(lstate, "errorManager");
	lua_getglobal(lstate, "afterLoop");
	errCode=lua_pcall(lstate, 0, 0, -2);
	lua_pop(lstate, 1);
	if (errCode!=0) {
		lua_pop(lstate,1);
		logger.logLine("Error calling pcall over afterLoop");
		return false;
	}
	return true;
}
bool MenuLoopCode :: afterLoop ( ) { lua_State * lstate ; int errCode ; lstate = scriptMan . getLuaObject ( ) ; lua_getglobal ( lstate , " " ) ; lua_getglobal ( lstate , " " ) ; errCode = lua_pcall ( lstate , 0 , 0 , -2 ) ; lua_pop ( lstate , 1 ) ; if ( errCode != 0 ) { lua_pop ( lstate , 1 ) ; logger . logLine ( " " ) ; return false ; } return true ; }
afterLoop 
This is the code to be executed every time it's time to switch to
another program zone, being a program zone currently linked to
these functions.
afterLoop This is the code to be executed every time it ' s time to switch to another program zone being a program zone currently linked to these functions .
// EXECUTE THE LUA AFTER LOOP
 // execute the lua code that manages the after loop
 // take errorManager off the stack
 // there is an extra value there...
 // all ok
