[Assorted-commits] SF.net SVN: assorted: [362] cpp-commons/trunk/src/commons
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-02-11 04:54:52
|
Revision: 362 http://assorted.svn.sourceforge.net/assorted/?rev=362&view=rev Author: yangzhang Date: 2008-02-10 20:54:57 -0800 (Sun, 10 Feb 2008) Log Message: ----------- tweaks Modified Paths: -------------- cpp-commons/trunk/src/commons/check.h cpp-commons/trunk/src/commons/cppcommons.cpp cpp-commons/trunk/src/commons/hash.h Modified: cpp-commons/trunk/src/commons/check.h =================================================================== --- cpp-commons/trunk/src/commons/check.h 2008-02-11 04:54:43 UTC (rev 361) +++ cpp-commons/trunk/src/commons/check.h 2008-02-11 04:54:57 UTC (rev 362) @@ -38,6 +38,8 @@ /** * Similar to assert(), but is not conditionally compiled, so this is safe to * use as a guard against expected failures (such as checking return codes). + * This is a macro for two reasons: (1) the file and line, and (2) the lazy + * evaluation of msg. */ #define checkmsg(cond, msg) \ bool b = cond; \ Modified: cpp-commons/trunk/src/commons/cppcommons.cpp =================================================================== --- cpp-commons/trunk/src/commons/cppcommons.cpp 2008-02-11 04:54:43 UTC (rev 361) +++ cpp-commons/trunk/src/commons/cppcommons.cpp 2008-02-11 04:54:57 UTC (rev 362) @@ -23,6 +23,7 @@ #include <config.h> #endif +#include <commons/boost/threads.h> #include <commons/check.h> #include <commons/cpuid.h> #include <commons/files.h> Modified: cpp-commons/trunk/src/commons/hash.h =================================================================== --- cpp-commons/trunk/src/commons/hash.h 2008-02-11 04:54:43 UTC (rev 361) +++ cpp-commons/trunk/src/commons/hash.h 2008-02-11 04:54:57 UTC (rev 362) @@ -1,6 +1,8 @@ #ifndef _COMMONS_HASH_H #define _COMMONS_HASH_H +#include <sys/types.h> + namespace commons { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |