AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   Can forward system has dynamic-length arguments? (https://forums.alliedmods.net/showthread.php?t=336835)

11922911 03-12-2022 22:35

Can forward system has dynamic-length arguments?
 
I know MF_RegisterSPForward, MF_ExecuteForward has varargs (...)
however, I think the parameter length must be known and declared at the compile time.
for some reason I need something like the old callfunc_push_int() that supports dynamic-length arguments in C++ (run time)

for example I want to write a native function which is varargs (...) and auto push all the arguments to the MF_ExecuteForward or MF_RegisterSPForward etc...

possible?

11922911 03-13-2022 10:13

Re: Can forward system has dynamic-length arguments?
 
I have tried recreate the callfunc system by using MF_AmxExec, MF_AmxAllot, MF_AmxPush etc
but the important point is... the MF_AmxRelease function is missing,
I cannot find anything about that in amxx...


All times are GMT -4. The time now is 09:02.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.