Skip to content

Commit

Permalink
Fix the definition of the error_description() macro in bits.h now tha…
Browse files Browse the repository at this point in the history
…t json_tokener_errors[] is not exported.
  • Loading branch information
hawicz committed May 4, 2014
1 parent 2149a04 commit 1da0599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bits.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#define hexdigit(x) (((x) <= '9') ? (x) - '0' : ((x) & 7) + 9)
#define error_ptr(error) ((void*)error)
#define error_description(error) (json_tokener_errors[error])
#define error_description(error) (json_tokener_get_error(error))
#define is_error(ptr) (ptr == NULL)

#endif

0 comments on commit 1da0599

Please sign in to comment.