Skip to content

Commit

Permalink
back to PerlInterpreter * perl = NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Leich committed Nov 11, 2010
1 parent 6f4ca9b commit 9f0ea7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/helper.h
Expand Up @@ -2,6 +2,8 @@
#ifndef SDL_PERL_HELPER_H
#define SDL_PERL_HELPER_H

PerlInterpreter * perl = NULL;

void *bag2obj( SV *bag )
{
void *obj = NULL;
Expand Down Expand Up @@ -37,7 +39,7 @@ SV *_sv_ref( void *object, int p_size, int s_size, char *package )

void** pointers = malloc(2 * sizeof(void*));
pointers[0] = (void*)copy;
pointers[1] = (void*)PERL_GET_CONTEXT;
pointers[1] = (void*)perl;

return newSVsv(sv_setref_pv(ref, package, (void *)pointers));
}
Expand Down

0 comments on commit 9f0ea7f

Please sign in to comment.