I’m trying to create a function in Objective-C that will take __FILE__ and _cmd as arguments to prepare them for a Flurry logging event.
Here’s my function signature:
NSDictionary *prepareFailedRequestData(ASIFormDataRequest *request, char file, SEL method);
I’m not sure what to type the ‘file’ argument as. I tried ‘unsigned char’ based on some documentation I found, but that, as well as my current implementation, are throwing compiler warnings and crashing the program.
If ‘file’ will be the output of the __FILE__ macro, how do I type my argument?
Thanks!
Is a constant string, from the Apple documentation: