PL_set_engine should always return a sensible answer, even if multi-threading is not on.
This commit is contained in:
parent
3933ee4053
commit
f89f7e8e98
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user