Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove an useless pimple around exceptions
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 6 May 2016 08:53:52 +0000 (10:53 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 6 May 2016 08:53:52 +0000 (10:53 +0200)
src/simix/smx_private.h
src/simix/smx_process.cpp

index 0f1c7bf..0e542ca 100644 (file)
@@ -88,8 +88,6 @@ XBT_PUBLIC(void) SIMIX_clean(void);
     _smx_throw_issuer->doexception = 1;                                 \
   } else ((void)0)
 
-#define SMX_THROW() RETHROW
-
 /* ******************************** File ************************************ */
 typedef struct s_smx_file {
   surf_file_t surf_file;
index 93c852e..2fb0858 100644 (file)
@@ -1021,7 +1021,7 @@ void SIMIX_process_yield(smx_process_t self)
   if (self->doexception) {
     XBT_DEBUG("Wait, maestro left me an exception");
     self->doexception = 0;
-    SMX_THROW();
+    RETHROW;
   }
 
   if(SMPI_switch_data_segment && self->segment_index != -1){