From: coldpeace Date: Fri, 30 Jul 2010 12:41:24 +0000 (+0000) Subject: if lua isn't available, MSG_load_platform_script should die with a error message X-Git-Tag: v3_5~744 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6c78a73b09f4c01d837cacfe249bd18a3ce95e02 if lua isn't available, MSG_load_platform_script should die with a error message git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8077 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/msg/environment.c b/src/msg/environment.c index cabbc9dbe9..0f7d6dce34 100644 --- a/src/msg/environment.c +++ b/src/msg/environment.c @@ -92,6 +92,8 @@ void MSG_load_platform_script(const char *script_file) { printf("error: %s\n", lua_tostring(L, -1)); return; } +#else + xbt_die("Lua is not available!! to call MSG_load_platform_script, lua should be available..."); #endif return; }