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