Add function to Print to print only stack.
This commit is contained in:
@@ -405,7 +405,11 @@ public class Print extends Lua {
|
||||
ps.close();
|
||||
ps = previous;
|
||||
format( baos.toString(), 50 );
|
||||
printStack(stack, top, varargs);
|
||||
ps.println();
|
||||
}
|
||||
|
||||
public static void printStack(LuaValue[] stack, int top, Varargs varargs) {
|
||||
// print stack
|
||||
ps.print('[');
|
||||
for ( int i=0; i<stack.length; i++ ) {
|
||||
@@ -440,9 +444,6 @@ public class Print extends Lua {
|
||||
ps.print( " | " );
|
||||
}
|
||||
ps.print(varargs);
|
||||
ps.println();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user