Hi,
Does anyone know how to do that or if it can be done? I want MSG to be a long paragraph.
# define MSG "bla bla bla bla
bla bla bla....."
Thank you!
Printable View
Hi,
Does anyone know how to do that or if it can be done? I want MSG to be a long paragraph.
# define MSG "bla bla bla bla
bla bla bla....."
Thank you!
Add a backslash for continuation. If it is a string, you can split the string over several lines
Code:// lame example
#define tangent(x) \
sin(x) / \
cos(x)
// Remember to put a space after the "
#define PANGRAM \
"Xylophone wizard " \
"begets " \
"quick jive form"
Thank you! It works great :)
Cat
JeffCode:const char* MSG = "Prefer using global constants to macro defines.";