[SKIPLIST]

Verify that SKIPLIST_LEVELS is in the required range using C_ASSERTs (thanks to Thomas for the hint!)

svn path=/branches/colins-printing-for-freedom/; revision=68192
This commit is contained in:
Colin Finck 2015-06-19 12:33:45 +00:00
parent 86ad9580b1
commit f1377fcb7c

View file

@ -15,6 +15,9 @@
#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);
typedef int (WINAPI *PSKIPLIST_COMPARE_ROUTINE)(PVOID, PVOID);