Browse Source

fix compile time assert

pull/85/head
HappyDOGE 2 years ago
parent
commit
34efe20d10
  1. 6
      game/server/baseentity.h

6
game/server/baseentity.h

@ -1108,7 +1108,7 @@ public: @@ -1108,7 +1108,7 @@ public:
ENTITYFUNCPTR TouchSet( ENTITYFUNCPTR func, char *name )
{
#ifdef PLATFORM_64BITS
#if defined(GNUC) || defined(PLATFORM_WINDOWS_PC64)
COMPILE_TIME_ASSERT( sizeof(func) == 8 );
#else
COMPILE_TIME_ASSERT( sizeof(func) == 4 );
@ -1119,7 +1119,7 @@ public: @@ -1119,7 +1119,7 @@ public:
}
USEPTR UseSet( USEPTR func, char *name )
{
#ifdef PLATFORM_64BITS
#if defined(GNUC) || defined(PLATFORM_WINDOWS_PC64)
COMPILE_TIME_ASSERT( sizeof(func) == 8 );
#else
COMPILE_TIME_ASSERT( sizeof(func) == 4 );
@ -1130,7 +1130,7 @@ public: @@ -1130,7 +1130,7 @@ public:
}
ENTITYFUNCPTR BlockedSet( ENTITYFUNCPTR func, char *name )
{
#ifdef PLATFORM_64BITS
#if defined(GNUC) || defined(PLATFORM_WINDOWS_PC64)
COMPILE_TIME_ASSERT( sizeof(func) == 8 );
#else
COMPILE_TIME_ASSERT( sizeof(func) == 4 );

Loading…
Cancel
Save