Move source file name accessor methods.

This commit is contained in:
James Roseborough
2009-04-08 00:15:14 +00:00
parent 85db250622
commit a91cd3dfee
3 changed files with 5 additions and 5 deletions

View File

@@ -54,8 +54,4 @@ public class CallInfo {
return -1;
}
public String sourcename() {
return LoadState.getSourceName(closure.p.source.toJavaString());
}
}

View File

@@ -70,4 +70,8 @@ public class LPrototype {
return null; /* not found */
}
public String sourceshort() {
return LoadState.getSourceName(source.toJavaString());
}
}

View File

@@ -1097,7 +1097,7 @@ public class LuaState extends Lua {
}
}
if ( (level--) <= 0 ) {
return ci.sourcename()+":"+ci.currentline();
return ci.closure.p.sourceshort()+":"+ci.currentline();
}
}
}