diff options
Diffstat (limited to 'src/functiondebugstring.cpp')
-rw-r--r-- | src/functiondebugstring.cpp | 21 |
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 | |||
6 | using namespace Bu; | ||
7 | |||
8 | FunctionDebugString::FunctionDebugString() | ||
9 | { | ||
10 | } | ||
11 | |||
12 | FunctionDebugString::~FunctionDebugString() | ||
13 | { | ||
14 | } | ||
15 | |||
16 | void FunctionDebugString::call( class GameState &gState ) | ||
17 | { | ||
18 | Variable v = gState.popDeref(); | ||
19 | gState.push( Variable( Bu::String("%1").arg( v ) ) ); | ||
20 | } | ||
21 | |||