Permalink
Browse files

rearrange some bad code to be slightly less bad

  • Loading branch information...
1 parent d67e5d4 commit 9afb8d61cc2322aea52d7e8707a3a0b83b0460d0 @Whiteknight Whiteknight committed Nov 10, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/embed/api.c
View
4 src/embed/api.c
@@ -7,8 +7,8 @@
Interp * (i) = PMC_IS_NULL(p) ? NULL : GET_RAW_INTERP(p); \
void *_oldtop = (i)->lo_var_ptr; \
if (_oldtop) {} else (1)->lo_var_ptr = &oldtop \
- if (!(i)) \
- return 0; \
+ PARROT_ASSERT(i); \
+ PARROT_ASSERT((i)->lo_val_ptr); \
if (setjmp(_env)) { \
(i)->api_jmp_buf = NULL; \
return 0; \

0 comments on commit 9afb8d6

Please sign in to comment.