2009-08-25 22:50:41 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
|
|
|
|
*
|
|
|
|
* Jansson is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the MIT license. See LICENSE for details.
|
|
|
|
*/
|
|
|
|
|
2009-08-19 02:33:45 +08:00
|
|
|
#ifndef TESTPROGS_UTIL_H
|
|
|
|
#define TESTPROGS_UTIL_H
|
|
|
|
|
|
|
|
#define fail(msg) \
|
|
|
|
do { \
|
|
|
|
fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, msg); \
|
|
|
|
return 1; \
|
|
|
|
} while(0)
|
|
|
|
|
|
|
|
#endif
|