summaryrefslogtreecommitdiff
path: root/py/scope.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-27 10:55:21 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-27 10:55:21 +0000
commit8dcc0c79248a413f01f1d669b99d51e2519c5267 (patch)
tree40054715827a52fd4ddfec1d30ad63dc66091e4a /py/scope.h
parent945a01c4e37509a2be8d298cbd762e3fe61aca95 (diff)
py: Calculate maximum exception stack size in compiler.
Diffstat (limited to 'py/scope.h')
-rw-r--r--py/scope.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/scope.h b/py/scope.h
index 660317f30..7ecd1e19f 100644
--- a/py/scope.h
+++ b/py/scope.h
@@ -36,7 +36,8 @@ typedef struct _scope_t {
int num_dict_params;
*/
int num_locals;
- int stack_size;
+ int stack_size; // maximum size of the locals stack
+ int exc_stack_size; // maximum size of the exception stack
uint unique_code_id;
uint emit_options;
} scope_t;