Skip to content

Commit

Permalink
Remove duplicate definition of out_of_memory macro
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguystone committed Mar 26, 2018
1 parent fb15852 commit b821217
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#endif

#include "json.hpp"
#include "util.hpp"

// include utf8 library used by libsass
// ToDo: replace internal json utf8 code
Expand All @@ -46,11 +47,6 @@
extern "C" int snprintf(char *, size_t, const char *, ...);
#endif

#define out_of_memory() do { \
fprintf(stderr, "Out of memory.\n"); \
exit(EXIT_FAILURE); \
} while (0)

/* Sadly, strdup is not portable. */
static char *json_strdup(const char *str)
{
Expand Down

0 comments on commit b821217

Please sign in to comment.