Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add checking version sd_init
[simgrid.git] / include / simgrid / simdag.h
index 25d8009..5906b04 100644 (file)
@@ -151,6 +151,7 @@ XBT_PUBLIC(xbt_dynar_t) SD_daxload(const char *filename);
 XBT_PUBLIC(xbt_dynar_t) SD_dotload(const char *filename);
 XBT_PUBLIC(xbt_dynar_t) SD_dotload_with_sched(const char *filename);
 XBT_PUBLIC(xbt_dynar_t) SD_PTG_dotload(const char *filename);
+XBT_PUBLIC(void) SD_init_check(int *argc, char **argv);
 #ifdef __cplusplus
 namespace simgrid {
 namespace sd {
@@ -160,6 +161,12 @@ XBT_PUBLIC(std::set<SD_task_t>*) simulate(double how_long);
 #endif
 /** @} */
 
+
+#define SD_init(argc,argv) do{\
+    sg_version_check(SIMGRID_VERSION_MAJOR,SIMGRID_VERSION_MINOR,SIMGRID_VERSION_PATCH);\
+    SD_init_check(argc,argv);\
+}while(0)
+
 /* Support some backward compatibility */
 #define SD_workstation_t sg_host_t