Fix define collision with Mongoose
This commit is contained in:
parent
49985e2ca8
commit
9f4829be13
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue