@@ -108,11 +108,11 @@ Function/S interpretParamType(ptype, paramOrReturn)
108108 typeStr += "/U"
109109 endif
110110
111- if ( debuggingEnabled)
112- string msg
113- sprintf msg, "type:%d, str:%s" , ptype, typeStr
114- debugPrint ( msg)
115- endif
111+ // if(debuggingEnabled)
112+ // string msg
113+ // sprintf msg, "type:%d, str:%s", ptype, typeStr
114+ // debugPrint(msg)
115+ // endif
116116
117117 return typeStr
118118 endif
@@ -447,13 +447,19 @@ Function/S getProcWindows(regexp,options)
447447 return SortList ( procListClean, ";" ,4 )
448448End
449449
450- // Returns a list of independent modules including ProcGlobal but skipping WM modules
450+ // Returns a list of independent modules
451+ // Includes ProcGlobal but skips all WM modules and the current module in release mode
451452Function /S getModuleList ()
452453
453454 string moduleList
454455
455456 moduleList = IndependentModuleList ( ";" )
456457 moduleList = ListMatch ( moduleList, "!WM*" , ";" ) // skip WM modules
458+ string module = GetIndependentModuleName ()
459+
460+ if ( ! debuggingEnabled && ! isProcGlobal ( module))
461+ moduleList = ListMatch ( moduleList, "!" + module, ";" ) // skip current module
462+ endif
457463 moduleList = "ProcGlobal;" + SortList ( moduleList)
458464
459465 return moduleList
525531Function /S getProcList ( module)
526532 string module
527533
528- if ( cmpstr ( module, "ProcGlobal" ) == 0 )
534+ if ( isProcGlobal ( module) )
529535 return getGlobalProcWindows ()
530536 else
531537 return getIMProcWindows ( module)
0 commit comments