+/** \brief Macro to initialize the system (in start of main typically) */
+#define YAZ_CHECK_INIT(argc, argv) yaz_check_init1(&argc, &argv)
+/** \brief Macro to terminate the system (end of main, normally) */
+#define YAZ_CHECK_TERM yaz_check_term1(); return 0
+
+/** \brief Macro to enable and initialize the yaz_log(start of main) */
+#define YAZ_CHECK_LOG() yaz_check_init_log(argv[0])
+
+YAZ_BEGIN_CDECL
+
+/** \brief used by macro. Should not be called directly */
+YAZ_EXPORT void yaz_check_init1(int *argc, char ***argv);
+
+/** \brief used by macro. Should not be called directly */
+YAZ_EXPORT void yaz_check_term1(void);
+
+/** \brief used by macro. Should not be called directly */
+YAZ_EXPORT void yaz_check_init_log(const char *argv0);
+
+/** \brief used by macro. Should not be called directly */
+YAZ_EXPORT void yaz_check_print1(int type, const char *file, int line,
+ const char *expr);
+/** \brief used by macro. Should not be called directly */
+YAZ_EXPORT void yaz_check_eq1(int type, const char *file, int line,
+ const char *left, const char *right,
+ int lval, int rval);
+/** \brief used by macro. Should not be called directly */
+YAZ_EXPORT void yaz_check_inc_todo(void);
+YAZ_END_CDECL
+