PL_set_engine should always return a sensible answer, even if multi-threading is not on.

This commit is contained in:
Vítor Santos Costa 2010-12-13 21:07:35 +00:00
parent 3933ee4053
commit f89f7e8e98

View File

@ -2894,6 +2894,7 @@ PL_set_engine(PL_engine_t engine, PL_engine_t *old)
} }
return PL_ENGINE_SET; return PL_ENGINE_SET;
#else #else
if (old) *old = (PL_engine_t)&Yap_WLocal;
return FALSE; return FALSE;
#endif #endif
} }