Search in sources :

Example 1 with Upvaldesc

use of org.luaj.vm2.Upvaldesc in project LuaViewSDK by alibaba.

the class FuncState method newupvalue.

int newupvalue(LuaString name, expdesc v) {
    checklimit(nups + 1, LUAI_MAXUPVAL, "upvalues");
    if (f.upvalues == null || nups + 1 > f.upvalues.length)
        f.upvalues = realloc(f.upvalues, nups > 0 ? nups * 2 : 1);
    f.upvalues[nups] = new Upvaldesc(name, v.k == LexState.VLOCAL, v.u.info);
    return nups++;
}
Also used : Upvaldesc(org.luaj.vm2.Upvaldesc)

Aggregations

Upvaldesc (org.luaj.vm2.Upvaldesc)1