aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/alan2/parse.h
diff options
context:
space:
mode:
authorPaul Gilbert2019-06-22 12:19:13 -0700
committerPaul Gilbert2019-06-22 14:40:50 -0700
commitbad3ecd643132a09422117b63a687bf758139c01 (patch)
tree3e3af6d0c6085402c428f40adb23d2572aff3137 /engines/glk/alan2/parse.h
parent62eb0be065cc2bd911d3e14f4b6356f3081b7817 (diff)
downloadscummvm-rg350-bad3ecd643132a09422117b63a687bf758139c01.tar.gz
scummvm-rg350-bad3ecd643132a09422117b63a687bf758139c01.tar.bz2
scummvm-rg350-bad3ecd643132a09422117b63a687bf758139c01.zip
GLK: ALAN2: Create jump context system to replace original setjmp
This is basically a simplified version of the ScummVM coroutines, since we just need the ability to consistently break out to the main game loop when a call is made to the error method
Diffstat (limited to 'engines/glk/alan2/parse.h')
-rw-r--r--engines/glk/alan2/parse.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/glk/alan2/parse.h b/engines/glk/alan2/parse.h
index af3276fd14..100d739aa7 100644
--- a/engines/glk/alan2/parse.h
+++ b/engines/glk/alan2/parse.h
@@ -25,6 +25,8 @@
/* Parse data for ALAN interpreter module. */
+#include "engines/glk/alan2/jumps.h"
+
namespace Glk {
namespace Alan2 {
@@ -40,7 +42,7 @@ extern int litCount;
extern int vrbwrd;
// Parse a new player command
-extern void parse(void);
+extern void parse(CONTEXT);
} // End of namespace Alan2
} // End of namespace Glk