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.close();
|
||||||
ps = previous;
|
ps = previous;
|
||||||
format( baos.toString(), 50 );
|
format( baos.toString(), 50 );
|
||||||
|
printStack(stack, top, varargs);
|
||||||
|
ps.println();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void printStack(LuaValue[] stack, int top, Varargs varargs) {
|
||||||
// print stack
|
// print stack
|
||||||
ps.print('[');
|
ps.print('[');
|
||||||
for ( int i=0; i<stack.length; i++ ) {
|
for ( int i=0; i<stack.length; i++ ) {
|
||||||
@@ -440,9 +444,6 @@ public class Print extends Lua {
|
|||||||
ps.print( " | " );
|
ps.print( " | " );
|
||||||
}
|
}
|
||||||
ps.print(varargs);
|
ps.print(varargs);
|
||||||
ps.println();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user