Skip to content

Commit

Permalink
perl.h: Need just MULTIPLICITY for context
Browse files Browse the repository at this point in the history
PERL_UNUSED_CONTEXT should be defined properly whenever there is a
my_perl.  This happens whenever MULTIPLICITY is defined.  Prior to this
commit PERL_UNUSED_CONTEXT got defined properly only when threads are
being used.  You can have MULTIPLICITY without threads.
  • Loading branch information
khwilliamson committed Dec 15, 2023
1 parent 0c4822b commit e1e351e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perl.h
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ compilation causes it be used just some times.
# define PERL_UNUSED_VAR(x) ((void)sizeof(x))
#endif

#if defined(USE_ITHREADS)
#if defined(MULTIPLICITY)
# define PERL_UNUSED_CONTEXT PERL_UNUSED_ARG(my_perl)
#else
# define PERL_UNUSED_CONTEXT
Expand Down

0 comments on commit e1e351e

Please sign in to comment.