X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ea55b530facfb04b499b016152f739e024445aa4..f9d7b35c174d52377ef297f786129e0340ae0778:/src/simix/libsmx.cpp diff --git a/src/simix/libsmx.cpp b/src/simix/libsmx.cpp index 6abcebd589..3569270bde 100644 --- a/src/simix/libsmx.cpp +++ b/src/simix/libsmx.cpp @@ -11,6 +11,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#include + #include "src/mc/mc_replay.h" #include "smx_private.h" #include "src/mc/mc_forward.h" @@ -1401,7 +1403,10 @@ xbt_dict_t simcall_storage_get_content(smx_storage_t storage) return simcall_BODY_storage_get_content(storage); } - +void simcall_run_kernel(std::function const& code) +{ + return simcall_BODY_run_kernel((void*) &code); +} #ifdef HAVE_MC @@ -1410,7 +1415,7 @@ void *simcall_mc_snapshot(void) { } int simcall_mc_compare_snapshots(void *s1, void *s2) { - return simcall_BODY_mc_compare_snapshots(s1, s2); + return simcall_BODY_mc_compare_snapshots((simgrid::mc::Snapshot*)s1, (simgrid::mc::Snapshot*)s2); } #endif /* HAVE_MC */