Revision: 8654
          http://warzone2100.svn.sourceforge.net/warzone2100/?rev=8654&view=rev
Author:   muggenhor
Date:     2009-12-10 21:22:39 +0000 (Thu, 10 Dec 2009)

Log Message:
-----------
Improve compile time code checking:
 * Use a version of STATIC_ASSERT that can be used as part of expressions
  - Taken from the Linux kernel (<linux/kernel.h>)
 * Add macro WZ_ASSERT_ARRAY which (statically) asserts that the given variable 
is an array
  - the given array needs to have a compile-time defined size
  - pointers will fail this assertion
 * Verify that the expression given to ARRAY_SIZE is truly an array
  - verify this using WZ_ASSERT_ARRAY_EXPR
 * Catch & fix two coding errors resulting from wrong use of some macros
  - macros: sstrcpy and ARRAY_SIZE

Modified Paths:
--------------
    trunk/lib/framework/debug.h
    trunk/lib/framework/frameresource.c
    trunk/lib/framework/macros.h
    trunk/lib/framework/wzglobal.h
    trunk/src/levels.c


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Warzone2100-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-commits

Reply via email to