mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 03:36:47 -04:00
Just a little note
This commit is contained in:
parent
d38e08f102
commit
cf51cd2591
@ -260,7 +260,6 @@ public class LexState {
|
|||||||
|
|
||||||
void lexerror( String msg, int token ) {
|
void lexerror( String msg, int token ) {
|
||||||
String cid = Lua.chunkid( source.tojstring() );
|
String cid = Lua.chunkid( source.tojstring() );
|
||||||
// Is the string pushing needed?
|
|
||||||
L.pushfstring( cid+":"+linenumber+": "+msg );
|
L.pushfstring( cid+":"+linenumber+": "+msg );
|
||||||
if ( token != 0 )
|
if ( token != 0 )
|
||||||
L.pushfstring( "syntax error: "+msg+" near "+txtToken(token) );
|
L.pushfstring( "syntax error: "+msg+" near "+txtToken(token) );
|
||||||
|
@ -298,6 +298,9 @@ public class LuaC extends Lua implements Globals.Compiler, Globals.Loader {
|
|||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This function is useless. It doesn't push to a stack nor format strings.
|
||||||
|
*/
|
||||||
public String pushfstring(String string) {
|
public String pushfstring(String string) {
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user