00001 00008 #ifndef __VVERROR_H__ 00009 #define __VVERROR_H__ 00010 00011 #include "vvutil/vvLog.h" 00012 #include "vvutil/vvConstants.h" 00013 00014 #ifndef vvERROR 00015 #define vvERROR(status) do { int s = status; if (s != VV_OK) { vvLOG(VVLOG_DEBUG, "vvERROR status = %d (%s:%d)\n", s, __FILE__, __LINE__); return s; } } while (0) 00016 #endif 00017 00018 //#define vvERROR(status) do { int s = status; if (s != VV_OK) return s; } while (0) 00019 00020 00021 #endif // __VVERROR_H__
1.3.2