Better checking of library return values.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Mon, 9 Sep 2002 18:17:29 +0000 (18:17 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Mon, 9 Sep 2002 18:17:29 +0000 (18:17 +0000)
gom/gom_internal.h

index b24c28953869348393643018e98843ffa3c4159f..42dfa7601f70f49b03e23f51042d227719bcf8c4 100644 (file)
@@ -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);