xcode - defining integer constant
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:33 UTC
Read the original article
Hit count: 754
xcode
|objective-c
If I have
#define myConstant 10
and later I use this as in
[self doSomething: myConstant];
Supposing doSomething method is like
- (void) doSomething:(int)myNumber;
I receive a warning telling me "expected expression before int"
why is that and how to solve this?
thanks for any help.
© Stack Overflow or respective owner