Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Some distros need this
[simgrid.git] / src / simix / smx_context_sysv.c
index 18b447b..41341b6 100644 (file)
@@ -19,7 +19,6 @@
 
 #ifdef _XBT_WIN32
 #include "win32_ucontext.h"
-#include "win32_ucontext.c"
 #else
 #include "ucontext.h"
 #endif
@@ -71,7 +70,7 @@ void SIMIX_ctx_sysv_factory_init(smx_context_factory_t *factory)
     (*factory)->self = smx_ctx_sysv_self_parallel;
     (*factory)->get_thread_id = smx_ctx_sysv_get_thread_id;
 #else
-    THROW0(arg_error, 0, "No thread support for parallel context execution");
+    THROWF(arg_error, 0, "No thread support for parallel context execution");
 #endif
   }else{
     (*factory)->runall = smx_ctx_sysv_runall;
@@ -108,7 +107,7 @@ smx_ctx_sysv_create_context_sized(size_t size, xbt_main_func_t code,
 
     int res;
     res = getcontext(&(context->uc));
-    xbt_assert2(res == 0,
+    xbt_assert(res == 0,
                 "Error in context saving: %d (%s)", errno,
                 strerror(errno));
 
@@ -195,7 +194,7 @@ void smx_ctx_sysv_suspend(smx_context_t context)
   int rv;
   rv = swapcontext(&((smx_ctx_sysv_t) context)->uc, &((smx_ctx_sysv_t)context)->old_uc);
 
-  xbt_assert0((rv == 0), "Context swapping failure");
+  xbt_assert((rv == 0), "Context swapping failure");
 }
 
 void smx_ctx_sysv_resume(smx_context_t context)
@@ -204,7 +203,7 @@ void smx_ctx_sysv_resume(smx_context_t context)
   int rv;
   rv = swapcontext(&((smx_ctx_sysv_t)context)->old_uc, &((smx_ctx_sysv_t) context)->uc);
 
-  xbt_assert0((rv == 0), "Context swapping failure");
+  xbt_assert((rv == 0), "Context swapping failure");
 }
 
 void smx_ctx_sysv_runall(xbt_dynar_t processes)
@@ -227,7 +226,7 @@ void smx_ctx_sysv_resume_parallel(smx_process_t process)
   rv = swapcontext(&((smx_ctx_sysv_t)context)->old_uc, &((smx_ctx_sysv_t) context)->uc);
   smx_current_context = (smx_context_t)maestro_context;
 
-  xbt_assert0((rv == 0), "Context swapping failure");
+  xbt_assert((rv == 0), "Context swapping failure");
 }
 
 void smx_ctx_sysv_runall_parallel(xbt_dynar_t processes)