Added ProcDev/SysFS + Cleanup
[tpg/acess2.git] / Kernel / include / common.h
index 7638b48..7888a7a 100644 (file)
@@ -102,10 +102,14 @@ 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_RET0()  do{LEAVE('-');return;}while(0)
 #else
 # define ENTER(...)
 # define LOG(...)
 # define LEAVE(...)
+# define LEAVE_RET(_t,_v...)   return (_v)
+# define LEAVE_RET0()  return
 #endif
 /**
  * \}

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