diff options
author | William Deegan <bill@baddogconsulting.com> | 2022-03-21 16:42:26 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2022-03-21 16:42:26 (GMT) |
commit | 621c363f3289f6aacd0badd6291073e992e75271 (patch) | |
tree | 00a9b072bb9e2970bb11d9042971d27f3e0566eb /doc/man | |
parent | ecc6ee976b616f70866a3a452550b72077595deb (diff) | |
download | SCons-621c363f3289f6aacd0badd6291073e992e75271.zip SCons-621c363f3289f6aacd0badd6291073e992e75271.tar.gz SCons-621c363f3289f6aacd0badd6291073e992e75271.tar.bz2 |
Separated just the CheckMember() checker from yuzhicang's PR #4100, changed code to have same return values as rest of checkers, updated test to work with that.
Diffstat (limited to 'doc/man')
-rw-r--r-- | doc/man/scons.xml | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/doc/man/scons.xml b/doc/man/scons.xml index 47aba1f..be64144 100644 --- a/doc/man/scons.xml +++ b/doc/man/scons.xml @@ -4088,7 +4088,35 @@ Returns a boolean indicating success or failure.</para> </listitem> </varlistentry> - <varlistentry> + <varlistentry> + <term><replaceable>context</replaceable>.<methodname>CheckMember</methodname>(<parameter>aggregate_member, + [header, language]</parameter>) + </term> + <listitem> + <para>Checks for the existence of a member of the C/C++ struct or class. + <parameter>aggregate_member</parameter> + specifies the struct/class and member to check for. + <parameter>header</parameter> + is a string containing one or more + <literal>#include</literal> + lines that will be inserted into the program + that will be run to test for the existence of the member. + Example: + </para> + + <programlisting language="python"> +sconf.CheckMember('struct tm.tm_sec', '#include <time.h>') + </programlisting> + + <para> + Returns a boolean indicating success or failure. + </para> + + </listitem> + </varlistentry> + + + <varlistentry> <term><replaceable>context</replaceable>.<methodname>Define</methodname>(<parameter>symbol, [value, comment]</parameter>)</term> <listitem> <para>This method does not check for anything, but rather forces |