/** * \brief Creates the simgrid module and make it available to Lua. * \param L a Lua world */ static void sglua_register_c_functions(lua_State *L) { sglua_register_core_functions(L); sglua_register_task_functions(L); sglua_register_comm_functions(L); sglua_register_host_functions(L); sglua_register_process_functions(L); sglua_register_platf_functions(L); }
/** * \brief Opens the simgrid Lua module. * * This function is called automatically by the Lua interpreter when some * Lua code requires the "simgrid" module. * * \param L the Lua state */ int luaopen_simgrid(lua_State *L) { XBT_DEBUG("luaopen_simgrid *****"); sglua_register_core_functions(L); sglua_register_host_functions(L); sglua_register_platf_functions(L); return 1; }