Cleanup and Bugfixing
[tpg/acess2.git] / Kernel / include / common.h
index 7638b48..0ff9c7f 100644 (file)
@@ -102,10 +102,13 @@ extern void       Debug_HexDump(char *Header, void *Data, Uint Length);
 # define ENTER(_types...)      Debug_Enter((char*)__func__, _types)
 # define LOG(_fmt...)  Debug_Log((char*)__func__, _fmt)
 # define LEAVE(_t...)  Debug_Leave((char*)__func__, _t)
+# define LEAVE_RET(_t,_v...)   do{LEAVE(_t,_v);return _v;}while(0)
+//# define LEAVE_RET(_t)       do{LEAVE(_t);return;}
 #else
 # define ENTER(...)
 # define LOG(...)
 # define LEAVE(...)
+# define LEAVE_RET(_t,_v...)   return (_v)
 #endif
 /**
  * \}

UCC git Repository :: git.ucc.asn.au