added empty macro when CMK_OPTIMIZE defined.
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 27 Jan 2003 19:01:59 +0000 (19:01 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 27 Jan 2003 19:01:59 +0000 (19:01 +0000)
src/conv-perf/converseEvents.h
src/conv-perf/machineEvents.h

index 7fee37616e59e66bfab2739f06c5f94472be0d59..5ef1f0c4a1ed197bd4190de4521aad046249c149 100644 (file)
          RegisterEvent(_CONVERSE_LANG_ID, _E_HANDLER_END  ); \
          \
        }
          RegisterEvent(_CONVERSE_LANG_ID, _E_HANDLER_END  ); \
          \
        }
+
+#ifdef CMK_OPTIMIZE
+#define _LOG_E_MSG_SENT(destPE, size)
+#define _LOG_E_MSG_QUEUED()
+#define _LOG_E_MSG_RECV_MC()
+#define _LOG_E_MSG_RECV_SC()
+#define _LOG_E_HANDLER_BEGIN(handlerIdx)
+#define _LOG_E_HANDLER_END(handlerIdx)
+#else
 #define _LOG_E_MSG_SENT(destPE, size) \
        { converse_msgSent(destPE, size); }
 #define _LOG_E_MSG_QUEUED() \
 #define _LOG_E_MSG_SENT(destPE, size) \
        { converse_msgSent(destPE, size); }
 #define _LOG_E_MSG_QUEUED() \
@@ -39,5 +48,6 @@
        { converse_handlerBegin(handlerIdx); }
 #define _LOG_E_HANDLER_END(handlerIdx) \
        { converse_handlerEnd(handlerIdx); }
        { converse_handlerBegin(handlerIdx); }
 #define _LOG_E_HANDLER_END(handlerIdx) \
        { converse_handlerEnd(handlerIdx); }
+#endif
 
 #endif
 
 #endif
index 6075d8618f8ae250271030f779c947e677abe7e0..85f2561365c3361e7c76c3c9a03654dea01eca97 100644 (file)
                \
        }
 
                \
        }
 
+#ifdef CMK_OPTIMIZE
+#define _LOG_E_PROC_IDLE()
+#define _LOG_E_PROC_BUSY()
+#else
 #define _LOG_E_PROC_IDLE() \
        { machine_procIdle(); }
 #define _LOG_E_PROC_BUSY() \
        { machine_procBusy(); }
 #endif
 
 #define _LOG_E_PROC_IDLE() \
        { machine_procIdle(); }
 #define _LOG_E_PROC_BUSY() \
        { machine_procBusy(); }
 #endif
 
+#endif
+