Alt-Acme-Math-XS-CPP
view release on metacpan or search on metacpan
inc/Inline/CPP.pm view on Meta::CPAN
$o->{STRUCT} ||= {'.macros' => q{}, '.any' => 0, '.xs' => q{}, '.all' => 0,};
_build_auto_include($o, $flavor_defs, $iostream);
$o->{ILSM}{PRESERVE_ELLIPSIS} = 0
unless defined $o->{ILSM}{PRESERVE_ELLIPSIS};
# Filter out the parameters we treat differently than Inline::C,
# forwarding unknown requests back up to Inline::C.
my @propagate = _handle_config_options($o, @config_options);
$o->SUPER::validate(@propagate) if @propagate;
return;
}
sub _build_auto_include {
my ($o, $flavor_defs, $iostream) = @_;
my $auto_include = <<'END';
#define __INLINE_CPP 1
#ifndef bool
inc/Inline/CPP.pm view on Meta::CPAN
my $o = shift;
return Inline::CPP::Parser::RecDescent::get_parser_recdescent($o);
}
#============================================================================
# Intercept xs_generate and create the typemap file
#============================================================================
sub xs_generate {
my $o = shift;
$o->write_typemap;
return $o->SUPER::xs_generate;
}
#============================================================================
# Return bindings for functions and classes
#============================================================================
sub xs_bindings {
my $o = shift;
# What is modfname, and why are we taking it from a slice but not using it?
my ($pkg, $module) = @{$o->{API}}{qw(pkg module)};
( run in 1.134 second using v1.01-cache-2.11-cpan-49f99fa48dc )