FreeTDS API

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tds_checks.h
1 /* FreeTDS - Library of routines accessing Sybase and Microsoft databases
2 * Copyright (C) 2004 Frediano Ziglio
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
18 */
19
20 #ifndef TDS_CHECKS_H
21 #define TDS_CHECKS_H
22
23 /* $Id: tds_checks.h,v 1.6 2010-01-25 23:05:59 freddy77 Exp $ */
24 #if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__MINGW32__)
25 #pragma GCC visibility push(hidden)
26 #endif
27
28 #if ENABLE_EXTRA_CHECKS
29 #define CHECK_STRUCT_EXTRA(func,s) func(s)
30 #else
31 #define CHECK_STRUCT_EXTRA(func,s)
32 #endif
33
34 #define CHECK_TDS_EXTRA(tds) CHECK_STRUCT_EXTRA(tds_check_tds_extra,tds)
35 #define CHECK_CONTEXT_EXTRA(ctx) CHECK_STRUCT_EXTRA(tds_check_context_extra,ctx)
36 #define CHECK_TDSENV_EXTRA(env) CHECK_STRUCT_EXTRA(tds_check_env_extra,env)
37 #define CHECK_COLUMN_EXTRA(column) CHECK_STRUCT_EXTRA(tds_check_column_extra,column)
38 #define CHECK_RESULTINFO_EXTRA(res_info) CHECK_STRUCT_EXTRA(tds_check_resultinfo_extra,res_info)
39 #define CHECK_PARAMINFO_EXTRA(res_info) CHECK_STRUCT_EXTRA(tds_check_resultinfo_extra,res_info)
40 #define CHECK_CURSOR_EXTRA(cursor) CHECK_STRUCT_EXTRA(tds_check_cursor_extra,cursor)
41 #define CHECK_DYNAMIC_EXTRA(dynamic) CHECK_STRUCT_EXTRA(tds_check_dynamic_extra,dynamic)
42
43 #if ENABLE_EXTRA_CHECKS
44 void tds_check_tds_extra(const TDSSOCKET * tds);
45 void tds_check_context_extra(const TDSCONTEXT * ctx);
46 void tds_check_env_extra(const TDSENV * env);
47 void tds_check_column_extra(const TDSCOLUMN * column);
48 void tds_check_resultinfo_extra(const TDSRESULTINFO * res_info);
49 void tds_check_cursor_extra(const TDSCURSOR * cursor);
50 void tds_check_dynamic_extra(const TDSDYNAMIC * dynamic);
51 #endif
52
53 #if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__MINGW32__)
54 #pragma GCC visibility pop
55 #endif
56 #endif /* TDS_CHECKS_H */