From f74123604bf09b2b5c68c5d48def74a2506099ff Mon Sep 17 00:00:00 2001 From: coldpeace Date: Thu, 11 Feb 2010 14:12:44 +0000 Subject: [PATCH] git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7082 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/simix/smx_context.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/simix/smx_context.c b/src/simix/smx_context.c index be29ac5144..c2c5b5f9bd 100644 --- a/src/simix/smx_context.c +++ b/src/simix/smx_context.c @@ -119,8 +119,16 @@ void SIMIX_context_init_factory_by_name(smx_context_factory_t * factory, #ifdef HAVE_LUA SIMIX_ctx_lua_factory_init(factory); #else + THROW0(not_found_error, 0, "Factory 'lua' does not exist: Lua support was not compiled in the SimGrid library"); #endif /* HAVE_LUA */ + + else if (!strcmp(name,"ruby")) +#ifdef HAVE_RUBY + SIMIX_ctx_ruby_factory_init(factory); +#else + THROW0(not_found_error, 0, "Factory 'ruby' does not exist: Ruby support was not compiled in the SimGrid library"); +#endif else THROW1(not_found_error, 0, "Factory '%s' does not exist", name); } -- 2.20.1