mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-01-30 19:52:17 +01:00
Possible fix for MSVC 7.1 SH_CALL on varargs
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4063
This commit is contained in:
parent
9a5437c0f1
commit
818c3990e9
@ -306,8 +306,8 @@ namespace SourceHook
|
||||
|
||||
@ENDARGS@
|
||||
|
||||
// GCC needs this, MSVC doesn't like them
|
||||
#if SH_COMP != SH_COMP_MSVC
|
||||
// GCC & MSVC 7.1 need this, MSVC 7.0 doesn't like it
|
||||
#if SH_COMP != SH_COMP_MSVC || _MSC_VER > 1300
|
||||
|
||||
@VARARGS@
|
||||
template<class X, class Y, class RetType@, @@class Param%%|, @>
|
||||
|
@ -773,9 +773,8 @@ SH_CALL2(SourceHook::CallClass<Y> *ptr, MFP mfp, RetType(X::*mfp2)(@Param%%|, @)
|
||||
|
||||
@ENDARGS@
|
||||
|
||||
#if SH_COMP != SH_COMP_MSVC
|
||||
|
||||
// **** MSVC doesn't like these, GCC needs them ****
|
||||
#if SH_COMP != SH_COMP_MSVC || _MSC_VER > 1300
|
||||
// GCC & MSVC 7.1 need this, MSVC 7.0 doesn't like it
|
||||
|
||||
@VARARGS@
|
||||
// Support for @$@ arguments
|
||||
|
@ -528,8 +528,8 @@ namespace SourceHook
|
||||
}
|
||||
|
||||
|
||||
// GCC needs this, MSVC doesn't like them
|
||||
#if SH_COMP != SH_COMP_MSVC
|
||||
// GCC & MSVC 7.1 need this, MSVC 7.0 doesn't like it
|
||||
#if SH_COMP != SH_COMP_MSVC || _MSC_VER > 1300
|
||||
|
||||
template<class X, class Y, class RetType>
|
||||
inline void GetFuncInfo(Y *ptr, RetType(X::*mfp)(...), MemFuncInfo &out)
|
||||
|
@ -1887,9 +1887,8 @@ SH_CALL2(SourceHook::CallClass<Y> *ptr, MFP mfp, RetType(X::*mfp2)(Param1, Param
|
||||
}
|
||||
|
||||
|
||||
#if SH_COMP != SH_COMP_MSVC
|
||||
|
||||
// **** MSVC doesn't like these, GCC needs them ****
|
||||
#if SH_COMP != SH_COMP_MSVC || _MSC_VER > 1300
|
||||
// GCC & MSVC 7.1 need this, MSVC 7.0 doesn't like it
|
||||
|
||||
// Support for 0 arguments
|
||||
template <class X, class Y, class MFP, class RetType>
|
||||
|
@ -229,6 +229,9 @@
|
||||
<File
|
||||
RelativePath="test3.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="test4.cpp">
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
|
Loading…
x
Reference in New Issue
Block a user