Skip to content

Commit

Permalink
Clean up api_jmp_buf after an API call
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariano Wahlmann committed Nov 26, 2010
1 parent 9f7a94c commit 7bda53a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/embed/embed_private.h
Expand Up @@ -25,13 +25,14 @@
return !exit_code; \
} else { \
{
#define EMBED_API_CALLOUT(p, i) \
} \
if (!_oldtop) {\
PARROT_ASSERT((i)->lo_var_ptr == &_oldtop);\
(i)->lo_var_ptr = NULL;\
}\
return 1; \
#define EMBED_API_CALLOUT(p, i) \
} \
(i)->api_jmp_buf = NULL; \
if (!_oldtop) { \
PARROT_ASSERT((i)->lo_var_ptr == &_oldtop); \
(i)->lo_var_ptr = NULL; \
} \
return 1; \
}

#endif /* PARROT_EMBED_PRIVATE_H */

0 comments on commit 7bda53a

Please sign in to comment.