X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Ftest.h;h=62c57e2b079f711db8c61d2aa89e7513707f6315;hp=c57b1975982b8645e1c4d0f5d6a2837980132edd;hb=fc42e0dc251df1d80ffc4c9279478d64d8a7027c;hpb=fc6d778b923000b5c6ad8e108b0b184178a9d33f diff --git a/include/yaz/test.h b/include/yaz/test.h index c57b197..62c57e2 100644 --- a/include/yaz/test.h +++ b/include/yaz/test.h @@ -2,7 +2,7 @@ * Copyright (C) 1995-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: test.h,v 1.6 2006-05-10 12:52:17 heikki Exp $ + * $Id: test.h,v 1.7 2006-07-06 13:10:29 heikki Exp $ */ /** \file test.h @@ -50,12 +50,20 @@ int yaz_test_get_verbosity(); /** \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(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);