Author: cfinck
Date: Fri Jun 19 12:33:45 2015
New Revision: 68192
URL:
http://svn.reactos.org/svn/reactos?rev=68192&view=rev
Log:
[SKIPLIST]
Verify that SKIPLIST_LEVELS is in the required range using C_ASSERTs (thanks to Thomas for
the hint!)
Modified:
branches/colins-printing-for-freedom/reactos/lib/skiplist/skiplist.h
Modified: branches/colins-printing-for-freedom/reactos/lib/skiplist/skiplist.h
URL:
http://svn.reactos.org/svn/reactos/branches/colins-printing-for-freedom/rea…
==============================================================================
--- branches/colins-printing-for-freedom/reactos/lib/skiplist/skiplist.h [iso-8859-1]
(original)
+++ branches/colins-printing-for-freedom/reactos/lib/skiplist/skiplist.h [iso-8859-1] Fri
Jun 19 12:33:45 2015
@@ -14,6 +14,9 @@
#ifndef SKIPLIST_LEVELS
#error Please define SKIPLIST_LEVELS to a value between 1 and 32.
#endif
+
+C_ASSERT(SKIPLIST_LEVELS >= 1);
+C_ASSERT(SKIPLIST_LEVELS <= 32);
// Function pointer definitions
typedef PVOID (WINAPI *PSKIPLIST_ALLOCATE_ROUTINE)(DWORD);