Thread
:
va_list function passing argument
View Single Post
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
02-25-2011 , 09:08 Re: va_list function passing argument
#
2
What do you need this for and what is the exact use case? Do you know the number of arguments 'p3' should contain and their types at compile time?
If not, you'll probably have to push the arguments on the stack according to the calling convention ( __cdecl or some varaint ) yourself using inline assembly. That would not be very easy to do (because "basic" types, floating point types, bigger types (structs, classes) can be each passed in a different way + you should respect copy constructors etc. for structs and classes)
__________________
hello, i am pm
PM
View Public Profile
Send a private message to PM
Visit PM's homepage!
Find More Posts by PM