Method cpp()
- Method cpp
string cpp(string data, mapping|string|void current_file, int|string|void charset, object|void handler, void|int compat_major, void|int compat_minor, void|int picky_cpp)
- Description
Run a string through the preprocessor.
Preprocesses the string data with Pike's builtin ANSI-C look-alike preprocessor. If the current_file argument has not been specified, it will default to
"-". charset defaults to"ISO-10646".If the second argument is a mapping, no other arguments may follow. Instead, they have to be given as members of the mapping (if wanted). The following members are recognized:
current_file : string This option does not strip comments from the file. Useful in combination with the prefix feature.
charset : int|string handler : object compat_major : int compat_minor : int picky_cpp : int keep_comments : int prefix : string If a prefix is given, only prefixed directives will be processed. For example, if the prefix is
"foo", then#foo_ifdef CONDandfoo___LINE__would be processed,#ifdef CONDand__LINE__would not.
- See also