aboutsummaryrefslogtreecommitdiff
path: root/src/i_util.c
blob: 48749d7c17f27b19c85772fa7e2fe226e9aa9fe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "i_util.h"
#include <stdio.h>
#include <stdlib.h>
#include "lua.h"

void p_fatal(const char* m){
  fprintf(stderr, "%s[ fatal ] %s %s\n",color_red, m, color_reset);
  exit(EXIT_FAILURE);
}

void p_error(const char* m){
  fprintf(stderr, "%s[ error ]%s %s\n",color_red, color_reset, m);
}