Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix doc for cppflags
  • Loading branch information
ingydotnet committed Jul 1, 2015
1 parent e6eb072 commit dde53ed
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,6 +1,6 @@
# DO NOT EDIT
#
# This .travis.yml file generated by Zilla-Dist-0.0.189.
# This .travis.yml file generated by Zilla-Dist-0.0.192.
#
# To update it, run:
#
Expand Down
2 changes: 1 addition & 1 deletion About
Expand Up @@ -94,4 +94,4 @@ for up-to-date instructions.



# This file generated by Zilla-Dist-0.0.189
# This file generated by Zilla-Dist-0.0.192
17 changes: 13 additions & 4 deletions ReadMe.pod
Expand Up @@ -140,11 +140,20 @@ space, followed by the specified value:

=item C<cppflags>

Specify preprocessor flags.
Passed to 'cpp' C preprocessor by Preprocess() in Inline::Filters.

use Inline C => <<'END' => CPPFLAGS => ' -DPREPROCESSOR_DEFINE' => FILTERS => 'Preprocess';
use Inline C => <<'END' => CPPFLAGS => ' -DPREPROCESSOR_DEFINE=4321' => FILTERS => 'Preprocess';
=back

Specify preprocessor flags. Passed to C<cpp> C preprocessor by C<Preprocess()>
in L<Inline::Filters>.

use Inline C => <<'END',
CPPFLAGS => ' -DPREPROCESSOR_DEFINE',
FILTERS => 'Preprocess';
use Inline C => <<'END',
CPPFLAGS => ' -DPREPROCESSOR_DEFINE=4321',
FILTERS => 'Preprocess';

=over

=item C<filters>

Expand Down
12 changes: 12 additions & 0 deletions doc/Inline/C.swim
Expand Up @@ -119,6 +119,18 @@ See [ExtUtils::MakeMaker] and [perlxs].

use Inline C => config => ccflagsex => "-DXTRA -DTOO";

- `cppflags`

Specify preprocessor flags. Passed to `cpp` C preprocessor by `Preprocess()`
in [Inline::Filters].

use Inline C => <<'END',
CPPFLAGS => ' -DPREPROCESSOR_DEFINE',
FILTERS => 'Preprocess';
use Inline C => <<'END',
CPPFLAGS => ' -DPREPROCESSOR_DEFINE=4321',
FILTERS => 'Preprocess';

- `filters`

Allows you to specify a list of source code filters. If more than one is
Expand Down

0 comments on commit dde53ed

Please sign in to comment.