/* * Copyright (c) 2009-2011 Petri Lehtinen * * Jansson is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. */ #ifndef TESTPROGS_UTIL_H #define TESTPROGS_UTIL_H #include #define fail(msg) \ do { \ fprintf(stderr, "%s:%s:%d: %s\n", \ __FILE__, __FUNCTION__, __LINE__, msg); \ exit(1); \ } while(0) #endif