Skip to content

Commit

Permalink
Merge pull request #9 from AeneasVerif/protz_extern_c
Browse files Browse the repository at this point in the history
make the eurydice glue header includable from C++
  • Loading branch information
msprotz committed Apr 23, 2024
2 parents f2fd840 + 48910e1 commit 119051b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/eurydice_glue.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#pragma once

#if defined(__cplusplus)
extern "C" {
#endif

#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
Expand Down Expand Up @@ -211,3 +215,6 @@ typedef struct {

#define EURYDICE_REPLACE(ptr, new_v, t) ({ t old_v = *ptr; *ptr = new_v; old_v; })

#if defined(__cplusplus)
}
#endif

0 comments on commit 119051b

Please sign in to comment.