Examples of LocVars


Examples of org.luaj.vm2.LocVars

    for (i = 0; i < n; i++)
      dumpInt(f.lineinfo[i]);
    n = (strip) ? 0 : f.locvars.length;
    dumpInt(n);
    for (i = 0; i < n; i++) {
      LocVars lvi = f.locvars[i];
      dumpString(lvi.varname);
      dumpInt(lvi.startpc);
      dumpInt(lvi.endpc);
    }
    n = (strip) ? 0 : f.upvalues.length;
View Full Code Here

Examples of org.luaj.vm2.LocVars

  int registerlocalvar(LuaString varname) {
    FuncState fs = this.fs;
    Prototype f = fs.f;
    if (f.locvars == null || fs.nlocvars + 1 > f.locvars.length)
      f.locvars = LuaC.realloc( f.locvars, fs.nlocvars*2+1 );
    f.locvars[fs.nlocvars] = new LocVars(varname,0,0);
    return fs.nlocvars++;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.