Unknown type. But bool works.
Sent from my iPad. Please pardon typos.
On Sep 20, 2016, at 11:58 AM, Ryan Dignard <conceptuallyfla...@gmail.com> wrote:
> This doesn't work?
> in the .m file at file scope
> BOOL condition = NO;
> in the .c file at file scope
> extern BOOL condition;
> On Tue, Sep 20, 2016 at 8:14 AM, Alex Zavatone <z...@mac.com> wrote:
>> I've been beating my head against the wall on this one.
>> I'm trying to evaluate a condition and declare or conditionally #define a
>> macro within an Objective-C method function that can be checked within a c
>> Ideally, I'd just like a #define, but this
>> like it to be a BOOL or, since this is going to be checked in c, a bool.
>> I've tried all sorts of combinations of #define and extern and checking with
>> #if and #ifdef if I can even get this to compile.
>> The C file can't import the header of the Obj-C file or else I've got a few
>> hundred errors on my hands.
>> I can't even get the #define to be recognized in the C file.
>> Any pointers here on how to proceed?
>> I'm looking to declare or define a "thing" from a .m method that is scoped
>> so that it can be checked within a c file that can not import the .h file
>> for that .m file.
>> Will I need an intermediate file and class for this?
>> Alex Zavatone
>> Cocoa-dev mailing list (Cocoafirstname.lastname@example.org)
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>> Help/Unsubscribe/Update your Subscription:
>> This email sent to conceptuallyfla...@gmail.com
Cocoa-dev mailing list (Cocoaemail@example.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to arch...@mail-archive.com