Skip to content

Commit 844b74e

Browse files
committed
extern_c
1 parent b57d0d5 commit 844b74e

File tree

1 file changed

+3
-0
lines changed
  • src/simplicity/include/simplicity/elements

1 file changed

+3
-0
lines changed

src/simplicity/include/simplicity/elements/env.h

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#include <stdbool.h>
55
#include <stdint.h>
66

7+
extern "C" {
8+
79
/* This section builds the 'rawTransaction' structure which is the transaction data needed to build an Elements 'txEnv' environment
810
* for evaluating Simplicity expressions within.
911
* The 'rawTransaction' is copied into an opaque 'transaction' structure that can be reused within evaluating Simplicity on multiple
@@ -114,4 +116,5 @@ typedef struct tapEnv tapEnv;
114116
* Precondition: *rawEnv is well-formed (i.e. rawEnv->pathLen <= 128.)
115117
*/
116118
extern tapEnv* simplicity_elements_mallocTapEnv(const rawTapEnv* rawEnv);
119+
}
117120
#endif

0 commit comments

Comments
 (0)