00001 ///////////////////////////////////////////////////// 00002 /// Collection of preprocessor utility macros: /// 00003 /// /// 00004 /// REPEAT_xxx (text) /// 00005 /// REPEAT_WC_xxx (text) /// 00006 /// REPEAT (count, text) /// 00007 /// REPEAT_WC (count, text) /// 00008 /// /// 00009 /// LINE_STRING /// 00010 /// HERE /// 00011 ///////////////////////////////////////////////////// 00012 00013 #ifndef __J2K__UTIL_HPP__ 00014 #define __J2K__UTIL_HPP__ 00015 00016 #include <j2k/Util/Repeat.hpp> 00017 #include <j2k/Util/RepeatWC.hpp> 00018 00019 // __LINE__ as a string 00020 // e.g.: printf (LINE_STRING); 00021 00022 #define LINE_STRING #__LINE__ 00023 00024 00025 // File name and line number in string form like "File (1234):" 00026 // e.g.: #pragma message (HERE "Click here!") 00027 00028 #define HERE __FILE__ "(" LINE_STRING "):" 00029 00030 #endif