]> AND Public Git Repository - simgrid.git/blobdiff - include/smpi/mpi.h
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[ci-skip] document s4u::Task
[simgrid.git] / include / smpi / mpi.h
index d609d3d011c364278a6e19e26261deaa75c58b6d..5d61fb047f7ec3bc9607e8f65819c59ee4ef533c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2014. The SimGrid Team.
+/* Copyright (c) 2010-2023. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
 
 #include <sys/time.h> /* Load it before the define next line to not mess with the system headers */
 
-#if SIMGRID_HAVE_MC
 #undef assert
-#define assert(x) MC_assert(x)
-#endif
+#define assert(x) MC_assert(!!(x))
 
 #ifdef TRACE_CALL_LOCATION /* Defined by smpicc on the command line */
 #include <smpi/smpi_extended_traces.h>