Posts: 1,266
Threads: 6
Joined: Oct 2014
Instead of ( ) use " " and you don't need ; in it example:
PHP код:
#define MAX_CUSTOM "5"
//...
print("I like " #MAX_CUSTOM " cakes");
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
";" was a typo, sorry about that.
I know about inserting quoted defines, but I need the value to be a number, and that's the thing I can't remember
Posts: 1,266
Threads: 6
Joined: Oct 2014
Quote:
Originally Posted by Misiur
";" was a typo, sorry about that.
I know about inserting quoted defines, but I need the value to be a number, and that's the thing I can't remember
|
do you mean something like that :3?
PHP код:
#define MAX_CUSTOM 5
//...
print("I like "#MAX_CUSTOM" cakes");
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
Ah, missed that one. Thought # wouldn't care bout parentheses. Thanks!