   What \ means after #define ?
  #define CHECK_STAT(X)   if( (X) != MS::kSuccess) {   std::cout << __FILE__ << ":" << __LINE__ << std::endl;   MGlobal::displayError(status.errorString());   return (X);   }Hey guys i understand everything here except that \ thing after each line.What it means?PS : This is maya api code but you can still help about the \ thing   
  In C and C++ the \ character followed by a newline is a line continuation symbol. It means that the contents of the next line are considered to be part of the current line. Since #defines work by text replacement of the define name by the entire contents of the line following the symbol, line continuation allows a macro to be defined that spans multiple physical lines.   ;Quote:Original post by TheMan22#define CHECK_STAT(X)   if( (X) != MS::kSuccess) {   std::cout << __FILE__ << ":" << __LINE__ << std::endl;   MGlobal::displayError(status.errorString());   return (X);   }Hey guys i understand everything here except that \ thing after each line.What it means?PS : This is maya api code but you can still help about the \ thingThe '\' character tells the compiler that the macro continues on to the next line.   ;  You'll notice that the forum did the same thing as pre-processor does. It merged everything into a single line.   