From 16bc58049adac72cb1f398d9f89e42757bb4a22f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 25 Aug 2014 15:33:07 +0200 Subject: Imported Upstream version 2.3.3 --- doc/user/sconf.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'doc/user/sconf.xml') diff --git a/doc/user/sconf.xml b/doc/user/sconf.xml index 410325c..d84cc67 100644 --- a/doc/user/sconf.xml +++ b/doc/user/sconf.xml @@ -282,6 +282,26 @@ env = conf.Finish() +
+ Checking the size of a datatype + + Check the size of a datatype by using the &CheckTypeSize; method: + + + +env = Environment() +conf = Configure(env) +int_size = conf.CheckTypeSize('unsigned int') +print 'sizeof unsigned int is', int_size +env = conf.Finish() + + + +% scons -Q +sizeof unsigned int is 4 +scons: `.' is up to date. + +
Adding Your Own Custom Checks -- cgit v1.2.3