Skip to content

Commit

Permalink
[core] Rakudo needs to be able to control lexical/closure semantics f…
Browse files Browse the repository at this point in the history
…rom within its binder, meaning we need to be able to call Parrot_capture_lex. Make this possible, since it seems there's no other way to get at this functionality that's in the existing API.

git-svn-id: https://svn.parrot.org/parrot/trunk@41897 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
jnthn committed Oct 17, 2009
1 parent e3817f0 commit 50ae098
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/parrot/sub.h
Expand Up @@ -217,6 +217,7 @@ void invalidate_retc_context(PARROT_INTERP, ARGMOD(PMC *cont))
FUNC_MODIFIES(*cont);

void mark_context_start(void);
PARROT_EXPORT
void Parrot_capture_lex(PARROT_INTERP, ARGMOD(PMC *sub_pmc))
__attribute__nonnull__(1)
__attribute__nonnull__(2)
Expand Down
1 change: 1 addition & 0 deletions src/sub.c
Expand Up @@ -462,6 +462,7 @@ Capture the current lexical environment of a sub.
*/

PARROT_EXPORT
void
Parrot_capture_lex(PARROT_INTERP, ARGMOD(PMC *sub_pmc))
{
Expand Down

0 comments on commit 50ae098

Please sign in to comment.