lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> In 5.2.0-alpha, luac with multiple files doesn't work:

This patch in luac.c seems to fix it but I'll look more into it.

   f=toproto(L,-1);
   for (i=0; i<n; i++) f->p[i]=toproto(L,i-n-1);
+  for (i=0; i<n; i++) f->p[i]->upvalues[0].instack=0;
   f->sizelineinfo=0;
-  f->sizeupvalues=0;
   return f;