summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/embed.h b/embed.h
index b8cc87b414..e369c33b5c 100644
--- a/embed.h
+++ b/embed.h
@@ -16,7 +16,10 @@
/* (Doing namespace management portably in C is really gross.) */
-/* NO_EMBED is no longer supported. i.e. EMBED is always active. */
+/* NO_EMBED is no longer supported. i.e. EMBED is always active--
+ * but you can define PERL_HIDE_SHORT_NAMES to achieve the same. */
+
+#ifndef PERL_HIDE_SHORT_NAMES
/* Hide global symbols */
@@ -4944,6 +4947,8 @@
#endif /* PERL_IMPLICIT_CONTEXT */
+#endif /* #ifndef PERL_HIDE_SHORT_NAMES */
+
/* Compatibility stubs. Compile extensions with -DPERL_NOCOMPAT to
disable them.
@@ -4985,7 +4990,7 @@
an extra argument but grab the context pointer using the macro
dTHX.
*/
-#if defined(PERL_IMPLICIT_CONTEXT)
+#if defined(PERL_IMPLICIT_CONTEXT) && !defined(PERL_HIDE_SHORT_NAMES)
# define croak Perl_croak_nocontext
# define deb Perl_deb_nocontext
# define die Perl_die_nocontext