From e439aacbbaca7c23c28bc3babef388adaee83857 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sun, 1 Nov 2020 20:58:42 -0700 Subject: XSUB.h: Fix some apidoc entries So that Devel::PPPort can test that they compile --- XSUB.h | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'XSUB.h') diff --git a/XSUB.h b/XSUB.h index 90dcd1ef6f..82b0f8d1e5 100644 --- a/XSUB.h +++ b/XSUB.h @@ -18,17 +18,21 @@ F compiles XS code into C. See L. -=for apidoc Amn|char*|CLASS +=for comment +Some variables below are flagged with 'u' because Devel::PPPort can't currently +readily test them as they spring into existence by compiling with xsubpp. + +=for apidoc Amnu|char*|CLASS Variable which is setup by C to indicate the class name for a C++ XS constructor. This is always a C. See C>. -=for apidoc Amn|(whatever)|RETVAL +=for apidoc Amnu|type|RETVAL Variable which is setup by C to hold the return value for an XSUB. This is always the proper type for the XSUB. See L. -=for apidoc Amn|(whatever)|THIS +=for apidoc Amnu|type|THIS Variable which is setup by C to designate the object in a C++ XSUB. This is always the proper type for the C++ object. See C> and L. @@ -49,20 +53,24 @@ XSUB's aliases was used to invoke it. See L. =for apidoc Am|SV*|ST|int ix Used to access elements on the XSUB's stack. -=for apidoc AmU||XS +=for apidoc Ay||XS|name Macro to declare an XSUB and its C parameter list. This is handled by C. It is the same as using the more explicit C macro; the latter is preferred. -=for apidoc AmU||XS_INTERNAL +=for apidoc Ayu||XS_INTERNAL|name Macro to declare an XSUB and its C parameter list without exporting the symbols. This is handled by C and generally preferable over exporting the XSUB symbols unnecessarily. -=for apidoc AmU||XS_EXTERNAL +=for comment +XS_INTERNAL marked 'u' because declaring a function static within our test +function doesn't work + +=for apidoc Ay||XS_EXTERNAL|name Macro to declare an XSUB and its C parameter list explicitly exporting the symbols. -=for apidoc AmU||XSPROTO +=for apidoc Ay||XSPROTO|name Macro used by C> and C> to declare a function prototype. You probably shouldn't be using this directly yourself. -- cgit v1.2.1