xcode - defining integer variables
Posted
by Mike
on Stack Overflow
See other posts from Stack Overflow
or by Mike
Published on 2010-03-24T12:21:27Z
Indexed on
2010/03/24
12:23 UTC
Read the original article
Hit count: 264
If I have
#define myVariable 10
and later I use this as in
[self doSomething:myVariable];
Supposing doSomethign method is like
- (void) doSomething:(int)myNumber;
I receive a warning telling me that a "]" is expected before the ";"
why is that and how to solve this?
thanks for any help.
© Stack Overflow or respective owner