summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MLKDynamicContext.h2
-rw-r--r--MLKDynamicContext.m2
2 files changed, 4 insertions, 0 deletions
diff --git a/MLKDynamicContext.h b/MLKDynamicContext.h
index f515901..ba67ad8 100644
--- a/MLKDynamicContext.h
+++ b/MLKDynamicContext.h
@@ -8,6 +8,7 @@
{
MLKEnvironment *_conditionHandlers;
MLKEnvironment *_restarts;
+ MLKEnvironment *_catchTags;
MLKClosure *_currentConditionHandler;
MLKEnvironment *_environment;
MLKDynamicContext *_parent;
@@ -17,6 +18,7 @@
variables:(NSDictionary *)vars
handlers:(NSDictionary *)handlers
restarts:(NSDictionary *)restarts
+ catchTags:(NSDictionary *)catchTags
currentHandler:(MLKClosure *)handler;
-(MLKDynamicContext *) pushContext;
diff --git a/MLKDynamicContext.m b/MLKDynamicContext.m
index 2d8312f..ed4357a 100644
--- a/MLKDynamicContext.m
+++ b/MLKDynamicContext.m
@@ -25,6 +25,7 @@
variables:(NSDictionary *)vars
handlers:(NSDictionary *)handlers
restarts:(NSDictionary *)restarts
+ catchTags:(NSDictionary *)catchTags
currentHandler:(MLKClosure *)handler
{
_parent = (aContext ? aContext : [MLKDynamicContext currentContext]);
@@ -33,6 +34,7 @@
_parent,
_parent->_conditionHandlers);
_restarts = MAKE_ENVIRONMENT(restarts, _parent, _parent->_restarts);
+ _catchTags = MAKE_ENVIRONMENT(catchTags, _parent, _parent->_catchTags);
_currentConditionHandler = (handler
? (id) handler
: (_parent