Skip to content

Commit e8581bc

Browse files
committed
embed.h: Add caution about PERL_NO_SHORT_NAMES
1 parent bb58640 commit e8581bc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

embed.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020

2121
/* By defining PERL_NO_SHORT_NAMES (not done by default) the short forms
2222
* (like warn instead of Perl_warn) for the API are not defined.
23-
* Not defining the short forms is a good thing for cleaner embedding. */
23+
* Not defining the short forms is a good thing for cleaner embedding.
24+
* BEWARE that a bunch of macros don't have long names, so either must be
25+
* added or don't use them if you define this symbol */
2426

2527
#ifndef PERL_NO_SHORT_NAMES
2628

regen/embed.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ ($$$)
316316
317317
/* By defining PERL_NO_SHORT_NAMES (not done by default) the short forms
318318
* (like warn instead of Perl_warn) for the API are not defined.
319-
* Not defining the short forms is a good thing for cleaner embedding. */
319+
* Not defining the short forms is a good thing for cleaner embedding.
320+
* BEWARE that a bunch of macros don't have long names, so either must be
321+
* added or don't use them if you define this symbol */
320322
321323
#ifndef PERL_NO_SHORT_NAMES
322324

0 commit comments

Comments
 (0)