Skip to content

Commit

Permalink
add a note explaining this stupid function
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Dec 4, 2010
1 parent 5b6a239 commit e1ced3e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/embed/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,17 @@ Parrot_api_set_configuration_hash(Parrot_PMC interp_pmc, Parrot_PMC confighash)
EMBED_API_CALLOUT(interp_pmc, interp);
}

/*
This is an evil hack to provide a wrapper around IMCC to catch unhandled
exceptions without having to assume IMCC is linked in with libparrot. Delete
this as soon as we don't need it anymore.
*/

PARROT_API
Parrot_Int
Parrot_api_wrap_imcc_hack(Parrot_PMC interp_pmc, const char * sourcefile, int argc, const char **argv, Parrot_PMC* bytecodepmc, int *result, imcc_hack_func_t func)
Parrot_api_wrap_imcc_hack(Parrot_PMC interp_pmc, const char * sourcefile,
int argc, const char **argv, Parrot_PMC* bytecodepmc, int *result,
imcc_hack_func_t func)
{
EMBED_API_CALLIN(interp_pmc, interp)
*result = func(interp_pmc, sourcefile, argc, argv, bytecodepmc);
Expand Down

0 comments on commit e1ced3e

Please sign in to comment.