diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-06-06 20:48:20 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-06-06 20:48:20 +0200 |
commit | fedc13d6564dcf110ba3b7faca3c34a28c7905cb (patch) | |
tree | 422a499d46e5e63618201054218300e04ed134fe /client/setup.c | |
parent | ae8beb20a2a837824cfda4d748fbe07b26a161f0 (diff) |
error logging working
Diffstat (limited to 'client/setup.c')
-rw-r--r-- | client/setup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/setup.c b/client/setup.c index e51965f..41a987d 100644 --- a/client/setup.c +++ b/client/setup.c @@ -10,6 +10,8 @@ #include "strings.h" #include "ui.h" +#include "errcatch.h" + // pointers for endianness check static const uint16_t _test = 1; static const uint8_t *_ptest = (uint8_t *)&_test; @@ -47,6 +49,8 @@ void w2_client_setup(int argc, char **argv) { g_w2_ui_pad_body = newpad(g_w2_ui_height - 5, g_w2_ui_width); scrollok(g_w2_ui_pad_body, true); + w2_errcatch_throw(W2_E_CRIT_COM_UNAVAILABLE); + // check endianness g_w2_endianness = *_ptest; } |