Inline-CPP is a project mainly written in Perl, it's free.
Unofficial repo for software vendoring or packaging purposes
INTRODUCTION:
Inline::CPP -- Write Perl subroutines and classes in C++.
Inline::CPP lets you write Perl subroutines and classes in C++. You don't have to learn XS or SWIG, you can just put code right "inline" in your source.
Example:
use Inline CPP => <<'END';
class JAxH { public: JAxH(char *x);
SV* data();
private:
SV *dat;
};
JAxH::JAxH(char x) { dat = newSVpvf("Just Another %s Hacker", x); } SV JAxH::data() { return dat; }
END
print JAxH->new('Inline')->data(), "\n";
When run, this complete program prints:
Just Another Inline Hacker.
FEATURES:
Inline::CPP version 0.25 is a minor upgrade from previous versions. It includes:
INSTALLATION:
This module requires Inline::C.pm version 0.42 or higher to be installed.
To install Inline::CPP do this:
perl Makefile.PL make make test make install
(On ActivePerl for MSWin32, use nmake instead of make.)
You have to 'make install' before you can run it successfully.
INFORMATION:
The Inline mailing list is [email protected]. Send mail to [email protected] to subscribe.
Please send questions and comments to "Neil Watkiss" [email protected]
Copyright (c) 2003, Neil Watkiss. All Rights Reserved.