Fix define collision with Mongoose

This commit is contained in:
Christian W. Zuckschwerdt 2019-11-06 17:16:50 +01:00
parent 49985e2ca8
commit 9f4829be13

View file

@ -12,8 +12,8 @@
#ifndef INCLUDE_FATAL_H_
#define INCLUDE_FATAL_H_
#define STR(x) #x
#define STRINGIFY(x) STR(x)
#define STRINGIFYX(x) #x
#define STRINGIFY(x) STRINGIFYX(x)
#define FILE_LINE __FILE__ ":" STRINGIFY(__LINE__)
#define FATAL(what) do { fprintf(stderr, "FATAL: " what " from " FILE_LINE "\n"); exit(1); } while (0)
#define FATAL_MALLOC(what) FATAL("low memory? malloc() failed in " what)