diff --git a/src/main.c b/src/main.c index d05ce36..aeca14c 100644 --- a/src/main.c +++ b/src/main.c @@ -1,13 +1,23 @@ +#include #include #include #define LOG_LEVEL LOG_LEVEL_DEBUG +void notify_exit(void) +{ + DEBUG("Exiting gemstone..."); +} + void setup(void) { log_init(); DEBUG("starting gemstone..."); + #if LOG_LEVEL <= LOG_LEVEL_DEBUG + atexit(¬ify_exit); + #endif + DEBUG("finished starting up gemstone..."); }