X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fa159d28bf7eb7b7876fbd85ea11a8d74cf489fc..1485fe26372c540b07a9a86a5d08155d06d77e81:/src/simix/smx_deployment.cpp diff --git a/src/simix/smx_deployment.cpp b/src/simix/smx_deployment.cpp index e767079aaa..79a4993317 100644 --- a/src/simix/smx_deployment.cpp +++ b/src/simix/smx_deployment.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007-2018. The SimGrid Team. All rights reserved. */ /* 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. */ @@ -58,9 +58,7 @@ void SIMIX_launch_application(const char *file) // Wrap a main() function into a ActorCodeFactory: static simgrid::simix::ActorCodeFactory toActorCodeFactory(xbt_main_func_t code) { - return [code](std::vector args) { - return simgrid::xbt::wrapMain(code, std::move(args)); - }; + return [code](std::vector args) { return simgrid::xbt::wrap_main(code, std::move(args)); }; } /** @@ -146,7 +144,7 @@ void SIMIX_process_set_function(const char* process_host, const char* process_fu namespace simgrid { namespace simix { -void registerFunction(const char* name, ActorCodeFactory factory) +void register_function(const char* name, ActorCodeFactory factory) { simix_global->registered_functions[name] = std::move(factory); }