Roberto Bagnara wrote:
Hi there,
would you please consider adding to ciao_prolog.h the definition of macros allowing to determine the Ciao Prolog version at compile time? I mean, like the macros
SICSTUS_MAJOR_VERSION SICSTUS_MINOR_VERSION SICSTUS_REVISION_VERSION SICSTUS_BETA_VERSION
defined by sicstus.h and the macro
PLVERSION
by SWI-Prolog.h.
Sorry for the delay in the answer... I have just committed a patch to define
CIAO_MAJOR_VERSION CIAO_MINOR_VERSION CIAO_PATCH_VERSION CIAO_SVNREV
You can check for older Ciao version by checking that any of them are undefined, e.g.
#if !defined(CIAO_MAJOR_VERSION) ...Ciao 1.10... #elif CIAO_MAJOR_VERSION == 1 && CIAO_MINOR_VERSION >= 13 ... #endif
Please, tell me if it is enough for PPL.
Cheers, Jose
============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------