#include "xbt/log.h"
#include "xbt/swag.h"
#include "private.h"
+#define HAVE_RUBY /* HACK HACK */
+
+#ifdef HAVE_RUBY
+extern void SIMIX_ctx_ruby_factory_init(smx_context_factory_t *factory);
+#endif
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_context, simix, "Context switching mecanism");
#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);
}