From 4b3f775efa628db08f93630e20cf50f7fbb32f4d Mon Sep 17 00:00:00 2001 From: Vladimir Menshakov Date: Wed, 15 Jun 2011 22:02:18 +0400 Subject: DREAMWEB: removed asserts, added STACK_CHECK as suggested by Max --- devtools/tasmrecover/tasm/cpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'devtools') 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) -- cgit v1.2.3