mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-01-05 15:06:48 +00:00
fix compile time assert
This commit is contained in:
parent
733dc35479
commit
34efe20d10
@ -1108,7 +1108,7 @@ public:
|
|||||||
|
|
||||||
ENTITYFUNCPTR TouchSet( ENTITYFUNCPTR func, char *name )
|
ENTITYFUNCPTR TouchSet( ENTITYFUNCPTR func, char *name )
|
||||||
{
|
{
|
||||||
#ifdef PLATFORM_64BITS
|
#if defined(GNUC) || defined(PLATFORM_WINDOWS_PC64)
|
||||||
COMPILE_TIME_ASSERT( sizeof(func) == 8 );
|
COMPILE_TIME_ASSERT( sizeof(func) == 8 );
|
||||||
#else
|
#else
|
||||||
COMPILE_TIME_ASSERT( sizeof(func) == 4 );
|
COMPILE_TIME_ASSERT( sizeof(func) == 4 );
|
||||||
@ -1119,7 +1119,7 @@ public:
|
|||||||
}
|
}
|
||||||
USEPTR UseSet( USEPTR func, char *name )
|
USEPTR UseSet( USEPTR func, char *name )
|
||||||
{
|
{
|
||||||
#ifdef PLATFORM_64BITS
|
#if defined(GNUC) || defined(PLATFORM_WINDOWS_PC64)
|
||||||
COMPILE_TIME_ASSERT( sizeof(func) == 8 );
|
COMPILE_TIME_ASSERT( sizeof(func) == 8 );
|
||||||
#else
|
#else
|
||||||
COMPILE_TIME_ASSERT( sizeof(func) == 4 );
|
COMPILE_TIME_ASSERT( sizeof(func) == 4 );
|
||||||
@ -1130,7 +1130,7 @@ public:
|
|||||||
}
|
}
|
||||||
ENTITYFUNCPTR BlockedSet( ENTITYFUNCPTR func, char *name )
|
ENTITYFUNCPTR BlockedSet( ENTITYFUNCPTR func, char *name )
|
||||||
{
|
{
|
||||||
#ifdef PLATFORM_64BITS
|
#if defined(GNUC) || defined(PLATFORM_WINDOWS_PC64)
|
||||||
COMPILE_TIME_ASSERT( sizeof(func) == 8 );
|
COMPILE_TIME_ASSERT( sizeof(func) == 8 );
|
||||||
#else
|
#else
|
||||||
COMPILE_TIME_ASSERT( sizeof(func) == 4 );
|
COMPILE_TIME_ASSERT( sizeof(func) == 4 );
|
||||||
|
Loading…
Reference in New Issue
Block a user