Changeset 93 in kStuff
- Timestamp:
- Sep 15, 2016 11:53:59 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/k/kHlpAssert.h
r70 r93 222 222 #define kHlpAssertRCReturn(rc, rcRet) kHlpAssertMsgReturn((rc) == 0, ("%s = %d -> %d\n", #rc, (rc), (rcRet)), (rcRet)) 223 223 #define kHlpAssertRCReturnVoid(rc) kHlpAssertMsgReturnVoid((rc) == 0, ("%s = %d -> %d\n", #rc, (rc), (rcRet))) 224 #define kHlpAssertFailed() kHlpAssert(0) 225 #define kHlpAssertFailedReturn(rcRet) kHlpAssertReturn(0, (rcRet)) 226 #define kHlpAssertFailedReturnVoid() kHlpAssertReturnVoid(0) 227 #define kHlpAssertMsgFailed(msg) kHlpAssertMsg(0, msg) 228 #define kHlpAssertMsgFailedReturn(msg, rcRet) kHlpAssertMsgReturn(0, msg, (rcRet)) 229 #define kHlpAssertMsgFailedReturnVoid(msg) kHlpAssertMsgReturnVoid(0, msg)) 224 #define kHlpAssertFailed() kHlpAssert(0) 225 #define kHlpAssertFailedStmt(stmt) kHlpAssertStmt(0, stmt) 226 #define kHlpAssertFailedReturn(rcRet) kHlpAssertReturn(0, (rcRet)) 227 #define kHlpAssertFailedStmtReturn(stmt, rcRet) kHlpAssertStmtReturn(0, stmt, (rcRet)) 228 #define kHlpAssertFailedReturnVoid() kHlpAssertReturnVoid(0) 229 #define kHlpAssertFailedStmtReturnVoid(stmt) kHlpAssertStmtReturnVoid(0, stmt) 230 #define kHlpAssertMsgFailed(msg) kHlpAssertMsg(0, msg) 231 #define kHlpAssertMsgFailedStmt(msg, stmt) kHlpAssertMsgStmt(0, msg, stmt) 232 #define kHlpAssertMsgFailedReturn(msg, rcRet) kHlpAssertMsgReturn(0, msg, (rcRet)) 233 #define kHlpAssertMsgFailedStmtReturn(msg, stmt, rcRet) kHlpAssertMsgStmtReturn(0, msg, stmt, (rcRet)) 234 #define kHlpAssertMsgFailedReturnVoid(msg) kHlpAssertMsgReturnVoid(0, msg) 235 #define kHlpAssertMsgFailedStmtReturnVoid(msg, stmt) kHlpAssertMsgStmtReturnVoid(0, msg, stmt) 230 236 231 237 /**
Note:
See TracChangeset
for help on using the changeset viewer.