/** * Load the debug info for a function prototype * @param f the function Prototype * @throws IOException if there is an i/o exception */ void loadDebug( Prototype f ) throws IOException { f.source = loadString(); f.lineinfo = loadIntArray(); int n = loadInt(); f.locvars = n>0? new LocVars[n]: NOLOCVARS; for ( int i=0; i<n; i++ ) { LuaString varname = loadString(); int startpc = loadInt(); int endpc = loadInt(); f.locvars[i] = new LocVars(varname, startpc, endpc); } n = loadInt(); for ( int i=0; i<n; i++ ) f.upvalues[i].name = loadString(); }
/** * Load the debug info for a function prototype * @param f the function Prototype * @throws IOException if there is an i/o exception */ void loadDebug( Prototype f ) throws IOException { f.source = loadString(); f.lineinfo = loadIntArray(); int n = loadInt(); f.locvars = n>0? new LocVars[n]: NOLOCVARS; for ( int i=0; i<n; i++ ) { LuaString varname = loadString(); int startpc = loadInt(); int endpc = loadInt(); f.locvars[i] = new LocVars(varname, startpc, endpc); } n = loadInt(); for ( int i=0; i<n; i++ ) f.upvalues[i].name = loadString(); }
break; case LUA_TSTRING: values[i] = loadString(); break; default:
break; case LUA_TSTRING: values[i] = loadString(); break; default: