3 * @brief Do not use, only contains deprecated defines.
4 * @deprecated Use json_util.h instead.
6 * $Id: bits.h,v 1.10 2006/01/30 23:07:57 mclark Exp $
8 * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
9 * Michael Clark <michael@metaparadigm.com>
11 * This library is free software; you can redistribute it and/or modify
12 * it under the terms of the MIT license. See COPYING for details.
22 #define hexdigit(x) (((x) <= '9') ? (x) - '0' : ((x) & 7) + 9)
26 #define error_ptr(error) ((void*)error)
30 #define error_description(error) (json_tokener_get_error(error))
34 #define is_error(ptr) (ptr == NULL)