X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=rmac.h;h=62fb5427e0fc80b48dc1909352273369366e2931;hp=5ef9953c1559fe83ce93f14bc0f7cb0bfad39f90;hb=0e2c5f0a03900e42d76f8ef4c4f560e8a7ebca8b;hpb=c74d8ef6f193cb2be876c920c5cb7f599dd5418a diff --git a/rmac.h b/rmac.h index 5ef9953..62fb542 100644 --- a/rmac.h +++ b/rmac.h @@ -23,13 +23,13 @@ #pragma warning(disable:4996) #endif - //Makes warnings double clickable on visual studio + // Makes warnings double clickable on visual studio (ggn) #define STRINGIZE_HELPER(x) #x #define STRINGIZE(x) STRINGIZE_HELPER(x) - #define WARNING(desc) message(__FILE__ "(" STRINGIZE(__LINE__) ") : Warning: " #desc) + #define WARNING(desc) __pragma(message(__FILE__ "(" STRINGIZE(__LINE__) ") : Warning: " #desc)) // usage: - //#pragma WARNING(FIXME: Code removed because...) + // WARNING(FIXME: Code removed because...) #endif #include @@ -48,6 +48,9 @@ #define _OPEN_FLAGS O_TRUNC|O_CREAT|O_RDWR #define _OPEN_INC O_RDONLY #define _PERM_MODE S_IREAD|S_IWRITE + // WARNING WARNING WARNING + #define DO_PRAGMA(x) _Pragma (#x) + #define WARNING(desc) DO_PRAGMA(message (#desc)) #include #include #include @@ -62,6 +65,9 @@ #define _OPEN_FLAGS O_TRUNC|O_CREAT|O_RDWR #define _OPEN_INC O_RDONLY #define _PERM_MODE S_IREAD|S_IWRITE + // Defined here, even though the platfrom may not support it... + #define DO_PRAGMA(x) _Pragma (#x) + #define WARNING(desc) DO_PRAGMA(message (#desc)) #include #include #include