|
@@ -13,6 +13,16 @@
|
|
|
#if _MSC_VER
|
|
|
# define FILE_LINE_LINK __FILE__ "(" STRINGISE(__LINE__) ") : "
|
|
|
# define WARNING(exp) (FILE_LINE_LINK "WARNING: " exp)
|
|
|
+
|
|
|
+# define __MESSAGE(text) __pragma( message(__FILE__ "(" STRINGISE(__LINE__) ")" text) )
|
|
|
+# define ERROR(text) __MESSAGE( " : Error: " #text )
|
|
|
+# define MESSAGE(text) __MESSAGE( ": " #text )
|
|
|
+//# define TODO(text) WARNING( TODO: text )
|
|
|
+//use as:
|
|
|
+//ERROR( This will be a compiler error );
|
|
|
+//MESSAGE( Well this is what I have to say about this code );
|
|
|
+//TODO( Still have to fix 3D rendering );
|
|
|
+
|
|
|
#else//__GNUC__ - may need other defines for different compilers
|
|
|
# define WARNING(exp) ("WARNING: " exp)
|
|
|
#endif
|