#CC++ Interop Variadic Function?
22 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.
Also, it removed the #, it was meant to say C#/C++ interop.
by "variadic function" you mean what exactly?
some va_list stuff?
or variadic templates?
ok, i'm afraid i have no idea if that's possible in a good way
why do you need to?
va_list is generally pretty terrible
I just need to call spdlog from c#, there might be a better way, I don't have much c++ experience.
i mean, a hack that i guess should work would be to just declare functions with the signatures you like and call them. just make sure that the parameter types match the promoted parameter types you'd get with an ellipsis in C
real question ofc is why it needs to be a C logging library when i'm sure there's at least a billion such libraries designed for C#…
I'm writing a game engine in c++ with a c# front-end, I thought it would be better to keep the logging library uniform.