mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Different method of compiling C as C++ (-x c++)
This commit is contained in:
committed by
Yukihiro "Matz" Matsumoto
parent
00e6121260
commit
18757c8f7b
@@ -9,8 +9,13 @@
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
#ifdef MRB_ENABLE_CXX_EXCEPTION
|
||||
#define MRB_BEGIN_DECL
|
||||
#define MRB_END_DECL
|
||||
#else
|
||||
# define MRB_BEGIN_DECL extern "C" {
|
||||
# define MRB_END_DECL }
|
||||
#endif
|
||||
#else
|
||||
/** Start declarations in C mode */
|
||||
# define MRB_BEGIN_DECL
|
||||
|
||||
Reference in New Issue
Block a user