- Add compile-time assert, since ReactOS opengl32 depends on the hardcoded value.
authorAleksey Bragin <aleksey@reactos.org>
Fri, 14 Dec 2007 16:00:53 +0000 (16:00 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Fri, 14 Dec 2007 16:00:53 +0000 (16:00 +0000)
svn path=/trunk/; revision=31217

reactos/dll/win32/opengl32/gl.c

index 249ed52..787750e 100644 (file)
@@ -25,6 +25,9 @@
 #include <windows.h>
 #include "teb.h"
 
+#define C_ASSERT(e) extern char __C_ASSERT__[(e)?1:-1]
+C_ASSERT(FIELD_OFFSET(TEB, glTable) == 0xbe8);
+
 #include "opengl32.h"
 
 int STDCALL glEmptyFunc0() { return 0; }