Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Lowered exit code values to keep them under 256 threshold, partially …

…fixing #102.
  • Loading branch information...
commit e12cab26e31c8f49828925e6f54eaa3b25f3e572 1 parent 00f64b6
@tomaz authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 Common/GBExitCodes.h
View
12 Common/GBExitCodes.h
@@ -11,17 +11,17 @@
#pragma mark - Exit code "domains"
-#define GBEXIT_DOMAIN_ASSERT 0x100
-#define GBEXIT_DOMAIN_LOG 0x200
+#define GBEXIT_DOMAIN_ASSERT 10
+#define GBEXIT_DOMAIN_LOG 20
#pragma mark - Internal inconsistencies codes
-#define GBEXIT_ASSERT_GENERIC GBEXIT_DOMAIN_ASSERT | 0x01
+#define GBEXIT_ASSERT_GENERIC GBEXIT_DOMAIN_ASSERT
#pragma mark - Log based codes
-#define GBEXIT_LOG_WARNING GBEXIT_DOMAIN_LOG | 0x01
-#define GBEXIT_LOG_ERROR GBEXIT_DOMAIN_LOG | 0x02
-#define GBEXIT_LOG_FATAL GBEXIT_DOMAIN_LOG | 0x03
+#define GBEXIT_LOG_WARNING GBEXIT_DOMAIN_LOG
+#define GBEXIT_LOG_ERROR GBEXIT_DOMAIN_LOG + 1
+#define GBEXIT_LOG_FATAL GBEXIT_DOMAIN_LOG + 2
Please sign in to comment.
Something went wrong with that request. Please try again.