-void SIMIX_context_init_factory_by_name(smx_context_factory_t * factory,
- const char *name)
-{
-
- if (!strcmp(name, "java"))
-#ifdef HAVE_JAVA
- SIMIX_ctx_java_factory_init(factory);
-#else
- THROW0(not_found_error, 0, "Factory 'Java' does not exist: Java support was not compiled in the SimGrid library");
-#endif /* HAVE_JAVA */
-
- else if (!strcmp(name, "thread"))
-#ifdef CONTEXT_THREADS
- SIMIX_ctx_thread_factory_init(factory);
-#else
- THROW0(not_found_error, 0, "Factory 'thread' does not exist: thread support was not compiled in the SimGrid library");
-#endif /* CONTEXT_THREADS */
-
- else if (!strcmp(name, "sysv"))
- #if !defined(WIN32) && !defined(CONTEXT_THREADS)
- SIMIX_ctx_sysv_factory_init(factory);
- #else
- THROW0(not_found_error, 0, "Factory 'sysv' does not exist: no System V thread support under Windows");
- #endif
- else if (!strcmp(name, "lua"))
-#ifdef HAVE_LUA
- SIMIX_ctx_lua_factory_init(factory);
-#else