diff options
Diffstat (limited to 'ext/XS-APItest/XSUB-undef-XS_VERSION.xs')
-rw-r--r-- | ext/XS-APItest/XSUB-undef-XS_VERSION.xs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/XS-APItest/XSUB-undef-XS_VERSION.xs b/ext/XS-APItest/XSUB-undef-XS_VERSION.xs new file mode 100644 index 0000000000..9fdf4d4436 --- /dev/null +++ b/ext/XS-APItest/XSUB-undef-XS_VERSION.xs @@ -0,0 +1,18 @@ +#include "EXTERN.h" +#include "perl.h" + +/* We have to be in a different .xs so that we can do this: */ + +#undef XS_VERSION +#include "XSUB.h" + +/* This can't be "MODULE = XS::APItest" as then we get duplicate bootstraps. */ +MODULE = XS::APItest::XSUB PACKAGE = XS::APItest::XSUB + +PROTOTYPES: DISABLE + +void +XS_VERSION_undef(...) + PPCODE: + XS_VERSION_BOOTCHECK; + XSRETURN_EMPTY; |