Filter::cpp 1.33
Sponsored Links
Filter::cpp 1.33 Ranking & Summary
File size:
0.040 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
893
Date added:
2007-05-29
Publisher:
Paul Marquess
Filter::cpp 1.33 description
Filter::cpp is a cpp source filter.
SYNOPSIS
use Filter::cpp ;
This source filter pipes the current source file through the C pre-processor (cpp) if it is available.
As with all source filters its scope is limited to the current source file only. Every file you want to be processed by the filter must have a
use Filter::cpp ;
near the top.
Here is an example script which uses the filter:
use Filter::cpp ;
#define FRED 1
$a = 2 + FRED ;
print "a = $an" ;
#ifdef FRED
print "Hello FREDn" ;
#else
print "Where is FREDn" ;
#endif
And here is what it will output:
a = 3
Hello FRED
This example below, provided by Michael G Schwern, shows a clever way to get Perl to use a C pre-processor macro when the Filter::cpp module is available, or to use a Perl sub when it is not.
# use Filter::cpp if we can.
BEGIN { eval use Filter::cpp }
sub PRINT {
my($string) = shift;
#define PRINT($string)
(print $string."n")
}
PRINT("Mu");
Look at Michaels Tie::VecArray module for a practical use.
SYNOPSIS
use Filter::cpp ;
This source filter pipes the current source file through the C pre-processor (cpp) if it is available.
As with all source filters its scope is limited to the current source file only. Every file you want to be processed by the filter must have a
use Filter::cpp ;
near the top.
Here is an example script which uses the filter:
use Filter::cpp ;
#define FRED 1
$a = 2 + FRED ;
print "a = $an" ;
#ifdef FRED
print "Hello FREDn" ;
#else
print "Where is FREDn" ;
#endif
And here is what it will output:
a = 3
Hello FRED
This example below, provided by Michael G Schwern, shows a clever way to get Perl to use a C pre-processor macro when the Filter::cpp module is available, or to use a Perl sub when it is not.
# use Filter::cpp if we can.
BEGIN { eval use Filter::cpp }
sub PRINT {
my($string) = shift;
#define PRINT($string)
(print $string."n")
}
PRINT("Mu");
Look at Michaels Tie::VecArray module for a practical use.
Filter::cpp 1.33 Screenshot
Filter::cpp 1.33 Keywords
FRED
PRINT
source filter
source
filter
cpp
1.33
Filter::cpp
Filtercpp
Filter::cpp 1.33
Libraries
Programming
Bookmark Filter::cpp 1.33
Filter::cpp 1.33 Copyright
WareSeeker periodically updates pricing and software information of Filter::cpp 1.33 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Filter::cpp 1.33 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
source one
the source filter for this file could not be loaded
payless shoe source
source code
source filter theory
sourceforge
source for sports
counter strike source
pure source filter
source filter theory of speech production
source wars
alternative energy sources
sources of protein
source filter model
source water filter
windows media player source filter
open source
sourceone
Related Software
Filter::decrypt Perl module contains a template for a decrypt source filter. Free Download
Filter::Crypto is a Perl module that can create runnable Perl files encrypted with OpenSSL libcrypto. Free Download
Sax Filter is a modular set of filters that can be used to process XML documents via Javas SAX support. Free Download
SEO Filter is a Search Engine Optimization Software. Free Download
The FIR filter Plugin is an effect plugin for XMMS which enables to filter audio data using long FIR filters. Free Download
ip-filter-cgi is a set of perl script to modify rules of IP Filter (IP Filter is a TCP/IP packet filter cf: http://coombs.anu.ed Free Download
Filter::Macro is a Perl module to make macro modules that are expanded inline. Free Download
Bloom::Filter is a sample Perl Bloom filter implementation. Free Download
Latest Software
Popular Software
Favourite Software