summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-10-08 06:02:06 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-10-08 06:02:06 +0300
commit660b40e31041d7cf0b5bc227bc05281419324ee4 (patch)
treebc709458af6c63d4fc45a80b446696f4a466a112 /src
parent613e9623d8c9243a33402bf8845f914860b1dcdf (diff)
Helper for checking a successful status code
Diffstat (limited to 'src')
-rw-r--r--src/gmutil.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gmutil.h b/src/gmutil.h
index 2c017af4..88572f22 100644
--- a/src/gmutil.h
+++ b/src/gmutil.h
@@ -74,6 +74,9 @@ iLocalDef enum iGmStatusCode category_GmStatusCode(enum iGmStatusCode code) {
74 if (code < 10) return code; 74 if (code < 10) return code;
75 return code / 10; 75 return code / 10;
76} 76}
77iLocalDef iBool isSuccess_GmStatusCode(enum iGmStatusCode code) {
78 return category_GmStatusCode(code) == categorySuccess_GmStatusCode;
79}
77 80
78struct Impl_GmError { 81struct Impl_GmError {
79 iChar icon; 82 iChar icon;