]>
git.saurik.com Git - wxWidgets.git/blob - src/iodbc/itrace.h
12 # define TRACE_TYPE_APP2DM 1
13 # define TRACE_TYPE_DM2DRV 2
14 # define TRACE_TYPE_DRV2DM 3
16 # define TRACE_TYPE_RETURN 4
18 extern HPROC
_iodbcdm_gettrproc(void FAR
* stm
, int procid
, int type
);
21 # define TRACE_CALL( stm, trace_on, procid, plist )
23 # define TRACE_CALL( stm, trace_on, plist )\
29 hproc = _iodbcdm_gettrproc(stm, procid, TRACE_TYPE_APP2DM);\
38 # define TRACE_DM2DRV( stm, procid, plist )
40 # define TRACE_DM2DRV( stm, procid, plist )\
44 hproc = _iodbcdm_gettrproc(stm, procid, TRACE_TYPE_DM2DRV);\
52 # define TRACE_DRV2DM( stm, procid, plist )
54 # define TRACE_DRV2DM( stm, procid, plist ) \
58 hproc = _iodbcdm_gettrproc( stm, procid, TRACE_TYPE_DRV2DM);\
66 # define TRACE_RETURN( stm, trace_on, ret )
68 # define TRACE_RETURN( stm, trace_on, ret )\
73 hproc = _iodbcdm_gettrproc( stm, 0, TRACE_TYPE_RETURN);\
82 # define CALL_DRIVER( hdbc, ret, proc, procid, plist ) { ret = proc plist; }
84 # define CALL_DRIVER( hdbc, ret, proc, procid, plist )\
86 DBC_t FAR* pdbc = (DBC_t FAR*)(hdbc);\
89 TRACE_DM2DRV( pdbc->tstm, procid, plist )\
91 TRACE_DRV2DM( pdbc->tstm, procid, plist )\
92 TRACE_RETURN( pdbc->tstm, 1, ret )\