Skip to content

Commit

Permalink
make the eurydice glue header includable from C++
Browse files Browse the repository at this point in the history
  • Loading branch information
protz committed Apr 23, 2024
1 parent f2fd840 commit 48910e1
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 48910e1

Please sign in to comment.