HILA
Loading...
Searching...
No Matches
hila_signatures.h
1#ifndef HILA_SIGNATURES_H_
2#define HILA_SIGNATURES_H_
3
4/// Running HILA signature number - this is used to ensure that hilapp executable and the hila
5/// framework source are mutually compatible. Incompatibilities may arise if e.g. one updates hila
6/// framework without recompiling hilapp.
7///
8/// The signature number is incremented when hila and/or hilapp are changed in
9/// a manner which makes previous versions incompatible. This file is included both in compilation
10/// of hila programs and in compilation of hilapp. When hilapp is compiled, it gets the current
11/// symbol values. When hilapp is used to compile hila programs, it reads the then-current symbol
12/// values and checks that:
13///
14/// 1. in hilapp compiled HILA_SIGNATURE_NUMBER >= current MINIMUM_HILAPP_SIGNATURE
15/// 2. in hilapp compiled MINIMUM_HILA_SIGNATURE <= current HILA_SIGNATURE_NUMBER
16///
17/// If 1 is not true, an error message is printed suggesting recompilation of hilapp.
18/// If 2 is not true, an error message suggests updating hila framework (git pull)
19///
20/// TYPICAL USE CASE: Increment all numbers to a new equal value when incompatible
21/// change is made. This is the default below.
22
23#define HILA_SIGNATURE_NUMBER 1
24
25#define MINIMUM_HILAPP_SIGNATURE 1
26#define MINIMUM_HILA_SIGNATURE 1
27
28#endif