1 /* error.h 2 * 3 * $Id$ 4 * 5 * Notice: This header file contains declarations of functions and types that 6 * are just used internally. All library functions and types that are supposed 7 * to be publicly accessable are defined in ./src/ming.h. 8 */ 9 10 #ifndef SWF_ERROR_H_INCLUDED 11 #define SWF_ERROR_H_INCLUDED 12 13 #include "ming.h" 14 15 /* XXX - error calls should be macros to save the file/lineno */ 16 17 extern void (*SWF_warn)(const char *msg, ...); 18 extern void (*SWF_error)(const char *msg, ...); 19 20 void warn_default(const char *msg, ...); 21 void error_default(const char *msg, ...); 22 23 void setSWFWarnFunction(void (*error)(const char *msg, ...)); 24 void setSWFErrorFunction(void (*error)(const char *msg, ...)); 25 26 void SWF_assert(int c); 27 28 #endif /* SWF_ERROR_H_INCLUDED */ 29