Just a little note

This commit is contained in:
gamax92 2014-07-07 21:51:40 -06:00
parent d38e08f102
commit cf51cd2591
2 changed files with 3 additions and 1 deletions

View File

@ -260,7 +260,6 @@ public class LexState {
void lexerror( String msg, int token ) {
String cid = Lua.chunkid( source.tojstring() );
// Is the string pushing needed?
L.pushfstring( cid+":"+linenumber+": "+msg );
if ( token != 0 )
L.pushfstring( "syntax error: "+msg+" near "+txtToken(token) );

View File

@ -298,6 +298,9 @@ public class LuaC extends Lua implements Globals.Compiler, Globals.Loader {
return s;
}
/**
* This function is useless. It doesn't push to a stack nor format strings.
*/
public String pushfstring(String string) {
return string;
}