Fix preprocessor rules, #1170

This commit is contained in:
Garen Torikian 2012-12-24 17:18:44 -08:00
commit 723c86dc85
2 changed files with 60 additions and 36 deletions

View file

@ -1,6 +1,21 @@
// compound assignment operators
#include <iostream>
#include \
<iostream>
#include \
\
<iostream>
#include \
\
"iostream"
#include <boost/asio/io_service.hpp>
#include "boost/asio/io_service.hpp"
using namespace std;
int main ()
@ -9,5 +24,15 @@ int main ()
a = b;
a+=2; // equivalent to a=a+2
cout << a;
#if VERBOSE >= 2
prints("trace message");
#endif
return 0;
}
}
/* Print an error message and get out */
#define ABORT \
do { \
print( "Abort\n" ); \
exit(8); \
} while (0) /* Note: No semicolon */