ExtUti...Typemap(3pm)
β¨ NAME β¨
okay so bestie, welcome to ExtUtils::XSpp::Typemap β it's literally the type-mapping girlie π
she's hanging out in section 3pm of the User Contributed Perl Documentation, and her whole ~thing~ is mapping types. that's it. that's the job. π
π¦ METHODS π¦
π ExtUtils::XSpp::Typemap::type
returns the ExtUtils::XSpp::Node::Type that gets used for this typemap. that's the whole vibe. β¨
π ExtUtils::XSpp::Typemap::xs_type()
this one's optional! it's the XS typemap identifier (like, for example, T_IV) for this C++ type. π₯
π ExtUtils::XSpp::Typemap::xs_input_code()
also optional, no pressure π«Ά β this is the XS input code for the associated XS typemap.
π ExtUtils::XSpp::Typemap::xs_output_code()
again optional β the XS output code for the associated XS typemap. we love an optional queen. π
π ExtUtils::XSpp::Typemap::cpp_type()
returns the C++ type you should use for the local variable declaration. iconic. πΈ
π ExtUtils::XSpp::Typemap::input_code( perl_argument_name, cpp_var_name1, ... )
this is the code that puts the contents of the perl_argument (which is typically ST(x)) into the C++ variable(s). it's giving "handoff" energy. π€
π ExtUtils::XSpp::Typemap::output_code( perl_variable, c_variable )
π ExtUtils::XSpp::Typemap::cleanup_code( perl_variable, c_variable )
π ExtUtils::XSpp::Typemap::call_parameter_code( parameter_name )
π ExtUtils::XSpp::Typemap::call_function_code( function_call_code, return_variable )
okay so these ones let you modify the code that gets used in the function/method call π the first parameter has the form "THIS-"method( <args> )>, and the second parameter is a variable to hold the return value. main character customization energy fr fr. π
and that's the whole page, bestie β no cap, you're basically a typemap expert now π§π this lil gem came from the perl v5.40.1 source, dated 2026-07-03, and it's filed under ExtUti...Typemap(3pm). slay, go map some types. β¨π
π¦ where this page comes from
- ubuntu stonking: libextutils-xspp-perl 0.1900-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms