mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 23:02:47 +01:00
Problematic template functions
This commit is contained in:
parent
48deb45624
commit
b9fc729928
1 changed files with 0 additions and 15 deletions
|
@ -83,15 +83,6 @@ template<u32 func(int, void *)> void WrapU_IV() {
|
||||||
RETURN(retval);
|
RETURN(retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<float func()> void WrapF_V() {
|
|
||||||
RETURNF(func());
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: Not sure about the floating point parameter passing
|
|
||||||
template<float func(int, float, u32)> void WrapF_IFU() {
|
|
||||||
RETURNF(func(PARAM(0), PARAMF(0), PARAM(1)));
|
|
||||||
}
|
|
||||||
|
|
||||||
template<u32 func(u32)> void WrapU_U() {
|
template<u32 func(u32)> void WrapU_U() {
|
||||||
u32 retval = func(PARAM(0));
|
u32 retval = func(PARAM(0));
|
||||||
RETURN(retval);
|
RETURN(retval);
|
||||||
|
@ -127,12 +118,6 @@ template<int func(u32, u32)> void WrapI_UU() {
|
||||||
RETURN(retval);
|
RETURN(retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<int func(u32, float, float)> void WrapI_UFF() {
|
|
||||||
// Not sure about the float arguments.
|
|
||||||
int retval = func(PARAM(0), PARAMF(0), PARAMF(1));
|
|
||||||
RETURN(retval);
|
|
||||||
}
|
|
||||||
|
|
||||||
template<int func(u32, u32, u32)> void WrapI_UUU() {
|
template<int func(u32, u32, u32)> void WrapI_UUU() {
|
||||||
int retval = func(PARAM(0), PARAM(1), PARAM(2));
|
int retval = func(PARAM(0), PARAM(1), PARAM(2));
|
||||||
RETURN(retval);
|
RETURN(retval);
|
||||||
|
|
Loading…
Reference in a new issue