效果:
>------ Build started: Project: TestVS2013, Configuration: Debug Win32 ------ >> > ==================================== >> Line: > TODO : not implements now ! > ==================================== > > > ==================================== >> Line: > HACK : function implemented by a hack way! > ==================================== > > > ==================================== >> Line: > FIXME : buggy ! ! > ==================================== > > TestVS2013.vcxproj ->========== Build: succeeded, failed, up-to-date, skipped ==========
測試代碼:
TOOLS_STRINGSIZE( L ) #L TOOLS_MAKESTRING_IMP( M, L ) M(L) TOOLS_MAKESTRING(x) TOOLS_MAKESTRING_IMP(TOOLS_STRINGSIZE,x) TOOLS_MESSAGE_LINE "\n====================================\n" TOOLS_MESSAGE_POSITION __FILE__ "\nLine:" TOOLS_MAKESTRING(__LINE__) "\n" TODO(x) message (TOOLS_MESSAGE_LINE TOOLS_MESSAGE_POSITION "TODO : " x TOOLS_MESSAGE_LINE) HACK(x) message (TOOLS_MESSAGE_LINE TOOLS_MESSAGE_POSITION "HACK : " x TOOLS_MESSAGE_LINE) FIXME(x) message (TOOLS_MESSAGE_LINE TOOLS_MESSAGE_POSITION "FIXME : " x TOOLS_MESSAGE_LINE) TODO("not implements now !") HACK("this function is implemented by a hack way!") FIXME("buggy ! !") main( argc, *