objective-c: Expanded from macro

687 Views Asked by At

in Mopub-SDK for iOS.there is an error in calling "mp_safe_block" method.

Macro definition:

// Macros for dispatching asynchronously to the main queue
#define mp_safe_block(block, ...) block ? block(__VA_ARGS__) : nil

Called as:

mp_safe_block(complete, NSError.sdkInitializationInProgress, nil);

Error message:

Left operand to ? is void, but right operand is of type 'nullptr_t'

maybe this error has nothing to do with the SDK itself. how to fix it ?

PS: that sdk code run correctly in a new xCode project created by myself. but there is an error in a Xcode-project builded by MMF2(clickTeam fusion) and this xCode-project version is too old. I updateded setting of Xcode.but it still an error.

0

There are 0 best solutions below