C++ (Qt)...WARNING( Blah-blah ololo ) ...void some_unfinished_func(){ REALIZATION_NEEDED;}
C++ (Qt)#pragma once /*! Crossplatform compiler warning message */ /*! Compiler warning message. Using: WARNING(blah-blah) void some_unfinished_func() { REALIZATION_NEEDED; } */ #define WARNING(msg) __PRAGMA(message (__LOC__#msg)) #define NEED_TO_DELETE WARNING(Need to delete)#define REALIZATION_NEEDED WARNING(Realization needed) ////////////////////////////////////////////////////////////////////////////////// details #ifdef _MSC_VER#define __PRAGMA(str) __pragma(str)#define __STR2__(x) #x#define __STR1__(x) __STR2__(x)#define __LOC__ __FILE__ "(" __STR1__( __LINE__ ) ") : warning: "#else#define __PRAGMA(str) _Pragma(#str)#define __LOC__#endif
qDebug() << message;qWarning() << "mySeperClass::myMegaMethod()[00232]:: WTH!? ";qFatal("divide: cannot divide by zero");
WARNING( Blah-blah ololo )
qDebug() << message;qWarning() << "mySeperClass::myMegaMethod()[00232]:: WTH!? "
//TODO: my todo message
Ваши бы слова да разрабам MSVS в уши ) Отменное гов..eцо этот MSVS я б сказал...
#define __PRAGMA(str) _Pragma(#str)
Да что угодно: kdevelop, netbeans, qtcreator...
CPU DisasmAddress Hex dump Command Comments004013F1 |. /EB 01 JMP SHORT 004013F4004013F3 | |90 NOP004013F4 |> \55 PUSH EBP
CPU DisasmAddress Hex dump Command Comments004012D0 /. 55 PUSH EBP004012D1 |. 8B0D 0CFF4400 MOV ECX,DWORD PTR DS:[<&msvcrt._onexit>]004012D7 |. 89E5 MOV EBP,ESP004012D9 |. 5D POP EBP