mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-11 11:19:09 +00:00
fix windows build scripts, add windows opus support
This commit is contained in:
@@ -358,6 +358,18 @@ DBG_INTERFACE struct SDL_Window * GetAssertDialogParent();
|
||||
#define VerifyEquals( _exp, _expectedValue ) AssertEquals( _exp, _expectedValue )
|
||||
#define DbgVerify( _exp ) Assert( _exp )
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define DbgAssert( _exp ) Assert( _exp )
|
||||
#else
|
||||
#define DbgAssert( _exp ) ((void)0)
|
||||
#endif
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define DbgAssert( _exp ) Assert( _exp )
|
||||
#else
|
||||
#define DbgAssert( _exp ) ((void)0)
|
||||
#endif
|
||||
|
||||
#define AssertMsg1( _exp, _msg, a1 ) AssertMsg( _exp, _msg, a1 )
|
||||
#define AssertMsg2( _exp, _msg, a1, a2 ) AssertMsg( _exp, _msg, a1, a2 )
|
||||
#define AssertMsg3( _exp, _msg, a1, a2, a3 ) AssertMsg( _exp, _msg, a1, a2, a3 )
|
||||
@@ -383,6 +395,7 @@ DBG_INTERFACE struct SDL_Window * GetAssertDialogParent();
|
||||
#define VerifyMsg3( _exp, _msg, a1, a2, a3 ) (_exp)
|
||||
#define VerifyEquals( _exp, _expectedValue ) (_exp)
|
||||
#define DbgVerify( _exp ) (_exp)
|
||||
#define DbgAssert( _exp ) ((void)0)
|
||||
|
||||
#define AssertMsg1( _exp, _msg, a1 ) ((void)0)
|
||||
#define AssertMsg2( _exp, _msg, a1, a2 ) ((void)0)
|
||||
@@ -397,6 +410,9 @@ DBG_INTERFACE struct SDL_Window * GetAssertDialogParent();
|
||||
|
||||
#endif // DBGFLAG_ASSERT
|
||||
|
||||
// Source2 compatibility macro
|
||||
#define AssertDbg( X ) DbgAssert( X )
|
||||
|
||||
// The Always version of the assert macros are defined even when DBGFLAG_ASSERT is not,
|
||||
// so they will be available even in release.
|
||||
#define AssertAlways( _exp ) _AssertMsg( _exp, _T("Assertion Failed: ") _T(#_exp), ((void)0), false )
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
#endif
|
||||
|
||||
// Undefine this if using a compiler lacking threadsafe RTTI (like vc6)
|
||||
#ifndef COMPILER_MSVC
|
||||
#define MEM_DEBUG_CLASSNAME 1
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
#if defined( OSX )
|
||||
|
||||
@@ -216,7 +216,7 @@ inline bool ThreadInMainThread()
|
||||
#endif
|
||||
|
||||
// NOTE: ThreadedLoadLibraryFunc_t needs to return the sleep time in milliseconds or TT_INFINITE
|
||||
typedef int (*ThreadedLoadLibraryFunc_t)();
|
||||
typedef uintp (*ThreadedLoadLibraryFunc_t)(void *pParam);
|
||||
PLATFORM_INTERFACE void SetThreadedLoadLibraryFunc( ThreadedLoadLibraryFunc_t func );
|
||||
PLATFORM_INTERFACE ThreadedLoadLibraryFunc_t GetThreadedLoadLibraryFunc();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user