mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-03-22 13:19:40 +01:00
fixed location of testrefret.cpp and added forgotten typename keywords
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40251
This commit is contained in:
parent
6a15c59cce
commit
00ab84ba4f
@ -501,12 +501,12 @@ namespace SourceHook
|
||||
{
|
||||
inline static T* GetOrigRet(ISourceHook *shptr)
|
||||
{
|
||||
T &ref = *reinterpret_cast<const ReferenceCarrier<T&>::type *>(shptr->GetOrigRet());
|
||||
T &ref = *reinterpret_cast<const typename ReferenceCarrier<T&>::type *>(shptr->GetOrigRet());
|
||||
return &ref;
|
||||
}
|
||||
inline static T* GetOverrideRet(ISourceHook *shptr)
|
||||
{
|
||||
T &ref = *reinterpret_cast<const ReferenceCarrier<T&>::type *>(shptr->GetOverrideRet());
|
||||
T &ref = *reinterpret_cast<const typename ReferenceCarrier<T&>::type *>(shptr->GetOverrideRet());
|
||||
return &ref;
|
||||
}
|
||||
};
|
||||
@ -1348,7 +1348,7 @@ namespace SourceHook
|
||||
void operator()(ISourceHook *shptr, T &res)
|
||||
{
|
||||
// overrideretptr points to ReferenceCarrier<T&>
|
||||
*reinterpret_cast<ReferenceCarrier<T&>::type *>(shptr->GetOverrideRetPtr()) = res;
|
||||
*reinterpret_cast<typename ReferenceCarrier<T&>::type *>(shptr->GetOverrideRetPtr()) = res;
|
||||
}
|
||||
};
|
||||
@[$1,0,$a:
|
||||
|
@ -428,7 +428,7 @@
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\testrefret.cpp"
|
||||
RelativePath="..\testrefret.cpp"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
@ -495,7 +495,7 @@
|
||||
>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
CommandLine="echo on
pushd ..\..\generate
shworker.exe iter sourcehook.hxx sourcehook.h 16
copy sourcehook.h ..\sourcehook.h
popd
"
|
||||
CommandLine="echo on
pushd ..\..\generate
shworker.exe iter sourcehook.hxx sourcehook.h 20
copy sourcehook.h ..\sourcehook.h
popd
"
|
||||
Outputs="..\..\sourcehook.h"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
|
Loading…
x
Reference in New Issue
Block a user