+
+namespace creaImageIO
+{
+ //==============================================================
+ inline void RegisterGimmickMessageTypes()
+ {
+ static bool first_time = true;
+ if (first_time)
+ {
+ crea::MessageManager::RegisterMessageType("Gimmick!",
+ "Gimmick",1);
+ crea::MessageManager::RegisterMessageType("Gimmick! DEBUG",
+ "Gimmick",0);
+ first_time = false;
+ }
+ }
+ //==============================================================
+ inline void SetGimmickMessageLevel(int l)
+ {
+ RegisterGimmickMessageTypes();
+ crea::MessageManager::SetMessageLevel("Gimmick!",l);
+ }
+ //==============================================================
+ inline void SetGimmickDebugMessageLevel(int l)
+ {
+ RegisterGimmickMessageTypes();
+ crea::MessageManager::SetMessageLevel("Gimmick! DEBUG",l);
+ }
+ //==============================================================
+
+ inline void deleteGimmickDebugMessage()
+ {
+ delete crea::MessageManager::GetInstance();
+ }
+
+
+#define GimmickMessage(LEV,MESS) \
+ creaMessage("Gimmick!",LEV,"[Gimmick!] "<<MESS);
+#define GimmickDebugMessage(LEV,MESS) \
+ creaDebugMessage("Gimmick! DEBUG",LEV,"[Gimmick!] DEBUG: "<<MESS);
+#define GimmickError(MESS) \
+ creaError("[Gimmick!] "<<MESS);
+
+} // namespace
+