aboutsummaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorVladimir Menshakov2011-06-15 22:02:18 +0400
committerVladimir Menshakov2011-06-15 22:02:18 +0400
commit4b3f775efa628db08f93630e20cf50f7fbb32f4d (patch)
tree067b20438e31194408c5a0338a755c9262c3feac /devtools
parentdfe83466b56a6bf382903c37aa520f282052b47f (diff)
downloadscummvm-rg350-4b3f775efa628db08f93630e20cf50f7fbb32f4d.tar.gz
scummvm-rg350-4b3f775efa628db08f93630e20cf50f7fbb32f4d.tar.bz2
scummvm-rg350-4b3f775efa628db08f93630e20cf50f7fbb32f4d.zip
DREAMWEB: removed asserts, added STACK_CHECK as suggested by Max
Diffstat (limited to 'devtools')
-rw-r--r--devtools/tasmrecover/tasm/cpp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/devtools/tasmrecover/tasm/cpp.py b/devtools/tasmrecover/tasm/cpp.py
index 888f0bf9bd..12b14fb6bc 100644
--- a/devtools/tasmrecover/tasm/cpp.py
+++ b/devtools/tasmrecover/tasm/cpp.py
@@ -257,7 +257,7 @@ namespace %s {
self.schedule(name)
def _ret(self):
- self.body += "\t{assert(stack_depth == context.stack.size()); return; }\n"
+ self.body += "\treturn;\n"
def parse2(self, dst, src):
dst_size, src_size = self.get_size(dst), self.get_size(src)
@@ -443,7 +443,7 @@ namespace %s {
self.proc_addr.append((name, self.proc.offset))
self.body = str()
- self.body += "void %s(Context & context) {\n\tuint stack_depth = context.stack.size();\n" %name;
+ self.body += "void %s(Context & context) {\n\tSTACK_CHECK(context);\n" %name;
self.proc.optimize()
self.unbounded = []
self.proc.visit(self, skip)