Ticket #170 (closed enhancement: fixed)

Opened 2 years 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: 1.2.1.0
Keywords: Cc:

Description

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 23 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.

#define COBIA_VERSION_MAJOR 1
#define COBIA_VERSION_MINOR 2
#define COBIA_VERSION_PATCH 0
#define COBIA_VERSION_REVISION 11

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 23 months ago by jasper (previous) (diff)

comment:2 Changed 23 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.

comment:3 Changed 9 months ago by jasper

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in e49753c and c3fcea2 - COBIA version is updated from python script; installed vs compiled COBIA version check is done as part of capeInitialize

comment:4 Changed 9 months ago by jasper

In [947168275740c0011f358be7881a303e7d8aa3fe]:

include merge fix #170 and fix #189

comment:5 Changed 9 months ago by jasper

  • Version changed from 1.2.0.12 to 1.2.1.0
Note: See TracTickets for help on using tickets.