From: Martin Quinson Date: Mon, 1 Aug 2016 15:15:58 +0000 (+0200) Subject: useless cosmetics X-Git-Tag: v3_14~659 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d4bde2116e4f10c14aa2729b83d4119e24043d4d useless cosmetics --- diff --git a/src/kernel/context/Context.cpp b/src/kernel/context/Context.cpp index 21b8e06991..fc48824a77 100644 --- a/src/kernel/context/Context.cpp +++ b/src/kernel/context/Context.cpp @@ -27,8 +27,7 @@ smx_context_t SIMIX_context_new( void_pfn_smxprocess_t cleanup_func, smx_process_t simix_process) { - if (!simix_global) - xbt_die("simix is not initialized, please call MSG_init first"); + xbt_assert(simix_global, "simix is not initialized, please call MSG_init first"); return simix_global->context_factory->create_context( std::move(code), cleanup_func, simix_process); } diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index 2407815003..0295c43e00 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -197,9 +197,7 @@ void create_maestro(std::function code) } } -/** - * \brief Creates and runs the maestro process - */ +/** @brief Creates and runs the maestro process */ void SIMIX_maestro_create(void (*code)(void*), void* data) { simgrid::simix::create_maestro(std::bind(code, data));