From: Peter Verthez Date: Mon, 9 Sep 2002 18:17:29 +0000 (+0000) Subject: Better checking of library return values. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=a4daec85b22ef8fcc5674700919f469b8c3aa853;p=gedcom-parse.git Better checking of library return values. --- diff --git a/gom/gom_internal.h b/gom/gom_internal.h index b24c289..42dfa76 100644 --- a/gom/gom_internal.h +++ b/gom/gom_internal.h @@ -79,6 +79,10 @@ void gom_unexpected_context(char* file, int line, OBJ_TYPE found); #define UNEXPECTED_CONTEXT(CTXT_TYPE) \ gom_unexpected_context(__FILE__, __LINE__, CTXT_TYPE) +void gom_mem_error(char *filename, int line); + +#define MEMORY_ERROR gom_mem_error(__FILE__, __LINE__) + void def_rec_end(Gedcom_rec rec, Gedcom_ctxt self); void def_elt_end(Gedcom_elt elt, Gedcom_ctxt parent, Gedcom_ctxt self, Gedcom_val parsed_value);