sourcehook/generate/sourcehook.hxx
branchhookman_autogen
changeset 463 7a413a63426f
parent 455 deec66cea8cc
     1.1 --- a/sourcehook/generate/sourcehook.hxx	Sat Nov 17 09:53:58 2007 +0000
     1.2 +++ b/sourcehook/generate/sourcehook.hxx	Sun Nov 18 11:58:07 2007 +0000
     1.3 @@ -1354,10 +1354,22 @@
     1.4  	}
     1.5  
     1.6  	template <class Iface, class RetType@[$2,1,$1:, class Param$2@]>
     1.7 +	OverrideFunctor<RetType> SetOverrideResult(RetType (Iface::*mfp)(@[$2,1,$1:Param$2, @]...))
     1.8 +	{
     1.9 +		return OverrideFunctor<RetType>();
    1.10 +	}
    1.11 +
    1.12 +	template <class Iface, class RetType@[$2,1,$1:, class Param$2@]>
    1.13  	Iface *RecallGetIface(ISourceHook *shptr, RetType (Iface::*mfp)(@[$2,1,$1|, :Param$2@]))
    1.14  	{
    1.15  		return reinterpret_cast<Iface*>(shptr->GetIfacePtr());
    1.16  	}
    1.17 +
    1.18 +	template <class Iface, class RetType@[$2,1,$1:, class Param$2@]>
    1.19 +	Iface *RecallGetIface(ISourceHook *shptr, RetType (Iface::*mfp)(@[$2,1,$1:Param$2, @]...))
    1.20 +	{
    1.21 +		return reinterpret_cast<Iface*>(shptr->GetIfacePtr());
    1.22 +	}
    1.23  @]
    1.24  }
    1.25