omega-bridge
Omega-first language interoperability: checked conversion backends and native language bindings
Brought by drakestapleton
omega-bridge / tests / native / v2 / stale.c
| 1 | /* The stale-identity check: compares the library's identity string for vec with the one the generated |
| 2 | * header carries. Exit 0 when equal, 3 (and the two strings) when the header is from another source. */ |
| 3 | #include "omega_native.h" |
| 4 | #include <stdio.h> |
| 5 | #include <string.h> |
| 6 | int main(void) |
| 7 | { |
| 8 | if (strcmp(omega2_ident_vec(), OMEGA2_IDENT_vec) == 0) |
| 9 | return 0; |
| 10 | printf("STALE library: %s\nSTALE header: %s\n", omega2_ident_vec(), OMEGA2_IDENT_vec); |
| 11 | return 3; |
| 12 | } |