Skip to content

Commit

Permalink
* src/pmc/coroutine.pmc:
Browse files Browse the repository at this point in the history
   + (TRY, CATCH, ENDTRY, THROW):  Remove these unused macros (RT#46697).


git-svn-id: https://svn.parrot.org/parrot/trunk@22406 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
Bob Rogers committed Oct 22, 2007
1 parent 3dd64f1 commit 84532c1
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/pmc/coroutine.pmc
Expand Up @@ -33,31 +33,6 @@ stopped. See the L<Glossary|docs/glossary.pod> for more information.
#include "parrot/parrot.h"
#include "parrot/oplib/ops.h"

/* RT#46697 put these into exceptions.h */

#define TRY \
do { \
new_internal_exception(INTERP); \
if (!setjmp(INTERP->exceptions->destination))

#define CATCH \
else

#define ENDTRY \
} while (0); \
do { \
Parrot_exception *e = INTERP->exceptions; \
INTERP->exceptions = e->prev; \
INTERP->exc_free_list = e; \
} while (0)


#define THROW(e) \
do { \
exceptions->err = e; \
longjmp(exceptions->dest, 1); \
} while (0)

static void
print_sub_name(PARROT_INTERP, PMC *sub)
{
Expand Down

0 comments on commit 84532c1

Please sign in to comment.