3

I need to call this function from the firebase library:

FOUNDATION_EXTERN NS_FORMAT_FUNCTION(1, 0)
void FIRCrashLogv(NSString *format, va_list ap);

I learnt at my previous question that Delphi does not offer a way to create va_list arguments and instead expects me to call the variadic function FIRCrashLog. Unfortunately, for this library, FIRCrashLog is not exported and is instead an inline function. This means that I cannot import it using an external declaration using varargs.

Is it possible to call the FIRCrashLogv variant from Delphi, and if so how can I do it?

Community
  • 1
  • 1
zeus
  • 12,173
  • 9
  • 63
  • 184
  • 1
    I re-wrote your question. I hope that is alright. Regarding your version, `varargs` is for declaring an external variadic function, but that's not relevant here. That would be how you would declare and import `FIRCrashLog` were it exported. So I removed that. – David Heffernan May 08 '17 at 09:00
  • thanks David look alright ... – zeus May 08 '17 at 09:00

0 Answers0