perldoc > ExtUtils::Constant::Base

📛 NAME

ExtUtils::Constant::Base - base class for ExtUtils::Constant objects

🚀 Quick Reference

Use CaseCommandDescription
Subclass for constant generation@ISA = 'ExtUtils::Constant::Base';Base class for constant modules
Generate C code for constantsC_constant(\%args, @items)Returns C subroutine definitions for constant lookup
Specify constant type and value{ name => 'FOO', type => 'IV', value => '42' }Define constant with name, type, and C expression
Conditional compilation{ macro => 'HAVE_FOO', ... }Use #ifdef to check availability
Aggregated type (PVN){ type => 'PVN', value => ['char *','length'] }Return pointer and length
Breakout thresholdC_constant(\%args, @items, breakout => 10)Control inlining vs sub function generation

📋 SYNOPSIS

require ExtUtils::Constant::Base;
@ISA = 'ExtUtils::Constant::Base';

📖 DESCRIPTION

ExtUtils::Constant::Base provides a base implementation of methods to generate C code to give fast constant value lookup by named string. Currently it's mostly used by ExtUtils::Constant::XS, which generates the lookup code for the constant() subroutine found in many XS modules.

🛠️ USAGE

ExtUtils::Constant::Base exports no subroutines. The following methods are available:

🐛 BUGS

Not everything is documented yet.

Probably others.

✍️ AUTHOR

Nicholas Clark <nick AT ccl4.org> based on the code in "h2xs" by Larry Wall and others

ExtUtils::Constant::Base
📛 NAME 🚀 Quick Reference 📋 SYNOPSIS 📖 DESCRIPTION 🛠️ USAGE 🐛 BUGS ✍️ AUTHOR

Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-11 21:06 @216.73.217.145
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^