From cf61014770870d3cc1af95474960dddad397250a Mon Sep 17 00:00:00 2001 From: dhewg Date: Sun, 11 Dec 2011 12:13:04 +0100 Subject: [PATCH] Add sanity checks for scripting --- idlib/Lib.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/idlib/Lib.cpp b/idlib/Lib.cpp index b8bc6ad..c6ead27 100644 --- a/idlib/Lib.cpp +++ b/idlib/Lib.cpp @@ -58,6 +58,10 @@ void idLib::Init( void ) { assert( sizeof( bool ) == 1 ); + // assumptions from the scripting compiler/interpreter + assert( sizeof( float ) == sizeof( int ) ); + assert( sizeof( idVec3 ) == sizeof( float ) * 3 ); + // initialize memory manager Mem_Init();