diff options
author | Andrew Featherstone <andrew.featherstone@cantab.net> | 2014-07-21 22:36:03 (GMT) |
---|---|---|
committer | Andrew Featherstone <andrew.featherstone@cantab.net> | 2014-07-21 22:36:03 (GMT) |
commit | bfb98081c448458cd05a7870eab45e654eac0a92 (patch) | |
tree | 55d4acd024c1cb4035058fbdcbf234ae5563a72e /doc/user | |
parent | 53e30bebc2a633fc95589b9dfe663483775138a5 (diff) | |
download | SCons-bfb98081c448458cd05a7870eab45e654eac0a92.zip SCons-bfb98081c448458cd05a7870eab45e654eac0a92.tar.gz SCons-bfb98081c448458cd05a7870eab45e654eac0a92.tar.bz2 |
Adds basic documentation of the CheckTypeSize method.
Diffstat (limited to 'doc/user')
-rw-r--r-- | doc/user/sconf.xml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/user/sconf.xml b/doc/user/sconf.xml index ff39b6b..214569d 100644 --- a/doc/user/sconf.xml +++ b/doc/user/sconf.xml @@ -282,6 +282,26 @@ env = conf.Finish() </sconstruct> </section> + <section> + <title>Checking the size of a datatype</title> + <para> + Check the size of a datatype by using the &CheckTypeSize; method: + </para> + + <sconstruct> +env = Environment() +conf = Configure(env) +int_size = conf.CheckTypeSize('unsigned int') +print 'sizeof unsigned int is', int_size +env = conf.Finish() + </sconstruct> + + <screen> +% <userinput>scons -Q</userinput> +sizeof unsigned int is 4 +scons: `.' is up to date. + </screen> + </section> <section> <title>Adding Your Own Custom Checks</title> |