Move source file name accessor methods.
This commit is contained in:
@@ -54,8 +54,4 @@ public class CallInfo {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String sourcename() {
|
|
||||||
return LoadState.getSourceName(closure.p.source.toJavaString());
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,4 +70,8 @@ public class LPrototype {
|
|||||||
return null; /* not found */
|
return null; /* not found */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String sourceshort() {
|
||||||
|
return LoadState.getSourceName(source.toJavaString());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1097,7 +1097,7 @@ public class LuaState extends Lua {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( (level--) <= 0 ) {
|
if ( (level--) <= 0 ) {
|
||||||
return ci.sourcename()+":"+ci.currentline();
|
return ci.closure.p.sourceshort()+":"+ci.currentline();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user