summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lua/lundump.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/lundump.c')
-rw-r--r--apps/plugins/lua/lundump.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/plugins/lua/lundump.c b/apps/plugins/lua/lundump.c
index 967b45c94b..13f910edd7 100644
--- a/apps/plugins/lua/lundump.c
+++ b/apps/plugins/lua/lundump.c
@@ -140,9 +140,18 @@ static void LoadDebug(LoadState* S, Proto* f)
{
int i,n;
n=LoadInt(S);
+#ifdef LUA_OPTIMIZE_DEBUG
+ if(n) {
+ f->packedlineinfo=luaM_newvector(S->L,n,unsigned char);
+ LoadBlock(S,f->packedlineinfo,n);
+ } else {
+ f->packedlineinfo=NULL;
+ }
+#else
f->lineinfo=luaM_newvector(S->L,n,int);
f->sizelineinfo=n;
LoadVector(S,f->lineinfo,n,sizeof(int));
+#endif
n=LoadInt(S);
f->locvars=luaM_newvector(S->L,n,LocVar);
f->sizelocvars=n;