Add sanity checks for scripting

This commit is contained in:
dhewg 2011-12-11 12:13:04 +01:00 committed by Daniel Gibson
parent 127ea10758
commit cf61014770

View file

@ -58,6 +58,10 @@ void idLib::Init( void ) {
assert( sizeof( bool ) == 1 ); assert( sizeof( bool ) == 1 );
// assumptions from the scripting compiler/interpreter
assert( sizeof( float ) == sizeof( int ) );
assert( sizeof( idVec3 ) == sizeof( float ) * 3 );
// initialize memory manager // initialize memory manager
Mem_Init(); Mem_Init();