Add extern "C" to module.h (#2150)
JerryScript-DCO-1.0-Signed-off-by: Greg Miell greg@gothack.ninja
This commit is contained in:
committed by
Dániel Bátyai
parent
623fabd6e6
commit
10f777689f
@@ -18,6 +18,11 @@
|
|||||||
|
|
||||||
#include "jerryscript.h"
|
#include "jerryscript.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Declare the signature for the module initialization function.
|
* Declare the signature for the module initialization function.
|
||||||
*/
|
*/
|
||||||
@@ -129,4 +134,7 @@ jerry_value_t jerryx_module_resolve (const jerry_value_t name,
|
|||||||
const jerryx_module_resolver_t **resolvers,
|
const jerryx_module_resolver_t **resolvers,
|
||||||
size_t count);
|
size_t count);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif /* __cplusplus */
|
||||||
#endif /* !JERRYX_MODULE_H */
|
#endif /* !JERRYX_MODULE_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user