Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wndxlori/164046 to your computer and use it in GitHub Desktop.
Save wndxlori/164046 to your computer and use it in GitHub Desktop.
Starts with prototype in header:
void* _CalcImageBlobParam(
void *pBlob,
PERFECTLYCLEARCALLBACK callbackfn = NULL,
void *pUserData = NULL
);
Modified for use in Objective-C:
void* _CalcImageBlobParam(
void *pBlob,
PERFECTLYCLEARCALLBACK callbackfn
#ifndef __OBJC__
= NULL
#endif
,
void *pUserData
#ifndef __OBJC__
= NULL
#endif
);
Then, when you call this in Objective-C, you just have to explicitly pass NULL to the optional parameters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment