X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6dbb38af3c37db705cc8db42a903b5d5a27fb95a..aeecccef59f268281e3c0423a535ccc4e001e491:/src/simdag/sd_global.c diff --git a/src/simdag/sd_global.c b/src/simdag/sd_global.c index 34c9939834..b10b00096b 100644 --- a/src/simdag/sd_global.c +++ b/src/simdag/sd_global.c @@ -445,24 +445,3 @@ void SD_exit(void) jedule_sd_cleanup(); #endif } - -/** - * \brief load script file - */ - -void SD_load_environment_script(const char *script_file) -{ -#ifdef HAVE_LUA - lua_State *L = lua_open(); - luaL_openlibs(L); - - if (luaL_loadfile(L, script_file) || lua_pcall(L, 0, 0, 0)) { - printf("error: %s\n", lua_tostring(L, -1)); - return; - } -#else - xbt_die - ("Lua is not available!! to call SD_load_environment_script, lua should be available..."); -#endif - return; -}