Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Stringify e_smx_req_t just by using macros (remove the special header)
[simgrid.git] / src / simix / smx_user.c
index 55f7497..1b75a46 100644 (file)
@@ -3,8 +3,9 @@
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix);
 
 static const char* request_names[] = {
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix);
 
 static const char* request_names[] = {
+#undef SIMIX_REQ_ENUM_ELEMENT
 #define SIMIX_REQ_ENUM_ELEMENT(x) #x /* generate strings from the enumeration values */
 #define SIMIX_REQ_ENUM_ELEMENT(x) #x /* generate strings from the enumeration values */
-#include "smx_req_enum.h"
+SIMIX_REQ_LIST
 #undef SIMIX_REQ_ENUM_ELEMENT
 };
 
 #undef SIMIX_REQ_ENUM_ELEMENT
 };