Raised This Month: $51 Target: $400
 12% 

Can forward system has dynamic-length arguments?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 03-12-2022 , 22:35   Can forward system has dynamic-length arguments?
Reply With Quote #1

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?
__________________
youtube:
@holla16

Last edited by 11922911; 03-12-2022 at 22:40.
11922911 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:10.


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