summaryrefslogtreecommitdiffstats
path: root/doc/man
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2022-03-21 16:42:26 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2022-03-21 16:42:26 (GMT)
commit621c363f3289f6aacd0badd6291073e992e75271 (patch)
tree00a9b072bb9e2970bb11d9042971d27f3e0566eb /doc/man
parentecc6ee976b616f70866a3a452550b72077595deb (diff)
downloadSCons-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.xml30
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 &lt;time.h&gt;')
+ </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