gemstone/src/main.c

29 lines
421 B
C
Raw Normal View History

#include <stdlib.h>
#include <sys/log.h>
2024-02-04 15:23:32 +00:00
#include <yacc/parser.tab.h>
#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(&notify_exit);
#endif
DEBUG("finished starting up gemstone...");
}
2024-02-04 15:23:32 +00:00
int main() {
setup();
2024-02-04 15:23:32 +00:00
yyparse();
return 0;
}