Cesanta / v7 Featured

Embedded JavaScript virtual machine

Dependents:   DISCO-F469NI_javascript_blinker

Revision:
2:7762b98d31c7
Parent:
1:887cf63a2a0b
Child:
3:2bce515c5f0b
--- a/v7.c	Tue Oct 11 12:09:44 2016 +0200
+++ b/v7.c	Tue Oct 11 12:22:24 2016 +0200
@@ -2045,6 +2045,10 @@
 #include <stddef.h> /* For size_t */
 #include <stdio.h>  /* For FILE */
 
+#if defined(__cplusplus)
+extern "C" {
+#endif /* __cplusplus */
+
 /*
  * TODO(dfrank) : improve amalgamation, so that we'll be able to include
  * files here, and include common/platform.h
@@ -2243,6 +2247,10 @@
 void v7_stack_stat_clean(struct v7 *v7);
 #endif
 
+#if defined(__cplusplus)
+}
+#endif /* __cplusplus */
+
 #endif /* CS_V7_SRC_CORE_PUBLIC_H_ */
 #ifdef V7_MODULE_LINES
 #line 1 "v7/src/std_error.h"
@@ -4547,6 +4555,10 @@
 
 /* Amalgamated: #include "v7/src/core_public.h" */
 
+#if defined(__cplusplus)
+extern "C" {
+#endif /* __cplusplus */
+
 /*
  * Execute JavaScript `js_code`. The result of evaluation is stored in
  * the `result` variable.
@@ -4635,6 +4647,10 @@
 enum v7_err v7_apply(struct v7 *v7, v7_val_t func, v7_val_t this_obj,
                      v7_val_t args, v7_val_t *res);
 
+#if defined(__cplusplus)
+}
+#endif /* __cplusplus */
+
 #endif /* CS_V7_SRC_EXEC_PUBLIC_H_ */
 #ifdef V7_MODULE_LINES
 #line 1 "v7/src/exec.h"