]>
git.saurik.com Git - wxWidgets.git/blob - src/iodbc/itrace.h
10 # define TRACE_TYPE_APP2DM 1
11 # define TRACE_TYPE_DM2DRV 2
12 # define TRACE_TYPE_DRV2DM 3
14 # define TRACE_TYPE_RETURN 4
16 extern HPROC
_iodbcdm_gettrproc(void FAR
* stm
, int procid
, int type
);
19 # define TRACE_CALL( stm, trace_on, procid, plist )
21 # define TRACE_CALL( stm, trace_on, plist )\
27 hproc = _iodbcdm_gettrproc(stm, procid, TRACE_TYPE_APP2DM);\
36 # define TRACE_DM2DRV( stm, procid, plist )
38 # define TRACE_DM2DRV( stm, procid, plist )\
42 hproc = _iodbcdm_gettrproc(stm, procid, TRACE_TYPE_DM2DRV);\
50 # define TRACE_DRV2DM( stm, procid, plist )
52 # define TRACE_DRV2DM( stm, procid, plist ) \
56 hproc = _iodbcdm_gettrproc( stm, procid, TRACE_TYPE_DRV2DM);\
64 # define TRACE_RETURN( stm, trace_on, ret )
66 # define TRACE_RETURN( stm, trace_on, ret )\
71 hproc = _iodbcdm_gettrproc( stm, 0, TRACE_TYPE_RETURN);\
80 # define CALL_DRIVER( hdbc, ret, proc, procid, plist ) { ret = proc plist; }
82 # define CALL_DRIVER( hdbc, ret, proc, procid, plist )\
84 DBC_t FAR* pdbc = (DBC_t FAR*)(hdbc);\
87 TRACE_DM2DRV( pdbc->tstm, procid, plist )\
89 TRACE_DRV2DM( pdbc->tstm, procid, plist )\
90 TRACE_RETURN( pdbc->tstm, 1, ret )\