Ticket #170 (new enhancement)

Opened 9 months ago

Last modified 9 months ago

Expose COBIA version from client header files

Reported by: jasper Owned by: jasper
Priority: major Milestone: Maintenance of Phase II
Component: Client Header Files Version:
Keywords: Cc:


Source code may test whether it is building against the proper COBIA version. For this reason, the COBIA client header files should expose the COBIA version

Change History

comment:1 Changed 9 months ago by jasper

It would be good if code could verify with e.g. a static assert or #if pragma that COBIA source requirements are met. E.g.


Then a PMC that need at least COBIA 1.3 could check proper SDK installation by e.g.

static_assert(COBIA_VERSION_MAJOR>=1,"please install a newer COBIA SDK")
static_assert(COBIA_VERSION_MINOR>=3,"please install a newer COBIA SDK")
Last edited 9 months ago by jasper (previous) (diff)

comment:2 Changed 9 months ago by jasper

The implementation of capeInitialize can then also check that the loaded runtime exposes via cobiaGetVersion the runtime that was compiled against, or newer, and raise an error if not.

Note: See TracTickets for help on using tickets.