From c487a00175cfc6d0097ad227180b67a67fc77670 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 30 Jan 2015 17:36:35 +1100 Subject: [PATCH] debug: use newer CHECK macros --- except.cpp | 4 ++-- net/except.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/except.cpp b/except.cpp index fce5fb32..c10abc55 100644 --- a/except.cpp +++ b/except.cpp @@ -79,7 +79,7 @@ win32_error::win32_error (DWORD _id): runtime_error ("Win32 error"), id (_id) { - CHECK_SOFT (id != ERROR_SUCCESS); + CHECK_NEQ (id, ERROR_SUCCESS); } @@ -87,7 +87,7 @@ win32_error::win32_error (void): runtime_error ("Win32 error"), id (GetLastError ()) { - CHECK_SOFT (id != ERROR_SUCCESS); + CHECK_NEQ (id, ERROR_SUCCESS); } diff --git a/net/except.cpp b/net/except.cpp index 86851d02..f9737b41 100644 --- a/net/except.cpp +++ b/net/except.cpp @@ -48,7 +48,7 @@ net::error::code_to_string (int code) { // It should be fine to signcast the code here as Windows guarantees all // error messages are positive but appears to use int for compatibility DWORD output = FormatMessage (0, NULL, sign_cast (code), 0, message, sizeof (message), NULL); - CHECK_HARD (output != 0); + CHECK_NEQ (output, 0); return std::string (message); #else