]>
git.saurik.com Git - wxWidgets.git/blob - src/iodbc/itrace.h
8 * The iODBC driver manager.
10 * Copyright (C) 1995 by Ke Jin <kejin@empress.com>
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Library General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with this library; if not, write to the Free
24 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
37 #define TRACE_TYPE_APP2DM 1
38 #define TRACE_TYPE_DM2DRV 2
39 #define TRACE_TYPE_DRV2DM 3
41 #define TRACE_TYPE_RETURN 4
43 extern HPROC
_iodbcdm_gettrproc (void FAR
* stm
, int procid
, int type
);
46 #define TRACE_CALL( stm, trace_on, procid, plist )
48 #define TRACE_CALL( stm, trace_on, plist )\
54 hproc = _iodbcdm_gettrproc(stm, procid, TRACE_TYPE_APP2DM);\
63 #define TRACE_DM2DRV( stm, procid, plist )
65 #define TRACE_DM2DRV( stm, procid, plist )\
69 hproc = _iodbcdm_gettrproc(stm, procid, TRACE_TYPE_DM2DRV);\
77 #define TRACE_DRV2DM( stm, procid, plist )
79 #define TRACE_DRV2DM( stm, procid, plist ) \
83 hproc = _iodbcdm_gettrproc( stm, procid, TRACE_TYPE_DRV2DM);\
91 #define TRACE_RETURN( stm, trace_on, ret )
93 #define TRACE_RETURN( stm, trace_on, ret )\
98 hproc = _iodbcdm_gettrproc( stm, 0, TRACE_TYPE_RETURN);\
107 #define CALL_DRIVER( hdbc, ret, proc, procid, plist ) { ret = proc plist; }
109 #define CALL_DRIVER( hdbc, ret, proc, procid, plist )\
111 DBC_t FAR* pdbc = (DBC_t FAR*)(hdbc);\
114 TRACE_DM2DRV( pdbc->tstm, procid, plist )\
116 TRACE_DRV2DM( pdbc->tstm, procid, plist )\
117 TRACE_RETURN( pdbc->tstm, 1, ret )\