summaryrefslogtreecommitdiff
path: root/src/functiondebugstring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/functiondebugstring.cpp')
-rw-r--r--src/functiondebugstring.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/functiondebugstring.cpp b/src/functiondebugstring.cpp
new file mode 100644
index 0000000..1c138d7
--- /dev/null
+++ b/src/functiondebugstring.cpp
@@ -0,0 +1,21 @@
1#include "functiondebugstring.h"
2
3#include <bu/sio.h>
4#include "gamestate.h"
5
6using namespace Bu;
7
8FunctionDebugString::FunctionDebugString()
9{
10}
11
12FunctionDebugString::~FunctionDebugString()
13{
14}
15
16void FunctionDebugString::call( class GameState &gState )
17{
18 Variable v = gState.popDeref();
19 gState.push( Variable( Bu::String("%1").arg( v ) ) );
20}
21