Commit eac8be4d authored by Olly Betts's avatar Olly Betts
Browse files

Allow runtime/api.h to be used in C++ code

Conditionally add extern "C" { ... } around the function declarations
for C++ compilers.

Closes #90, reported by vvarma.
parent 1d5f4d40
......@@ -19,8 +19,15 @@ struct SN_env {
unsigned char * B;
#ifdef __cplusplus
extern "C" {
extern struct SN_env * SN_create_env(int S_size, int I_size, int B_size);
extern void SN_close_env(struct SN_env * z, int S_size);
extern int SN_set_current(struct SN_env * z, int size, const symbol * s);
#ifdef __cplusplus
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment