@@ -118,9 +118,9 @@ module ConverterEvtReaders {
118118 userData: c_ptr(void ),
119119 attributes: c_ptr(OTF2_AttributeList),
120120 region: OTF2_RegionRef): OTF2_CallbackCode {
121- if noopCallbacks then return OTF2_CALLBACK_SUCCESS;
122121 var ctxPtr = userData: c_ptr(EvtCallbackContext);
123122 if ctxPtr == nil then return OTF2_CALLBACK_ERROR;
123+ if noopCallbacks then return OTF2_CALLBACK_SUCCESS;
124124 ref ctx = ctxPtr.deref();
125125 var cbSw: stopwatch; cbSw.start();
126126 ref defCtx = ctx.defContext;
@@ -151,9 +151,9 @@ module ConverterEvtReaders {
151151 userData: c_ptr(void ),
152152 attributes: c_ptr(OTF2_AttributeList),
153153 region: OTF2_RegionRef): OTF2_CallbackCode {
154- if noopCallbacks then return OTF2_CALLBACK_SUCCESS;
155154 var ctxPtr = userData: c_ptr(EvtCallbackContext);
156155 if ctxPtr == nil then return OTF2_CALLBACK_ERROR;
156+ if noopCallbacks then return OTF2_CALLBACK_SUCCESS;
157157 ref ctx = ctxPtr.deref();
158158 var cbSw: stopwatch; cbSw.start();
159159 ref defCtx = ctx.defContext;
@@ -187,9 +187,9 @@ module ConverterEvtReaders {
187187 numberOfMetrics: c_uint8,
188188 typeIDs: c_ptrConst(OTF2_Type),
189189 metricValues: c_ptrConst(OTF2_MetricValue)): OTF2_CallbackCode {
190- if noopCallbacks then return OTF2_CALLBACK_SUCCESS;
191190 var ctxPtr = userData: c_ptr(EvtCallbackContext);
192191 if ctxPtr == nil then return OTF2_CALLBACK_ERROR;
192+ if noopCallbacks then return OTF2_CALLBACK_SUCCESS;
193193 ref ctx = ctxPtr.deref();
194194 var cbSw: stopwatch; cbSw.start();
195195 ref defCtx = ctx.defContext;
0 commit comments