Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
bbf7b0ce
Commit
bbf7b0ce
authored
May 18, 2012
by
Yukihiro Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add extern "C" guards
parent
ec6c6df9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
4 deletions
+23
-4
include/mruby/data.h
include/mruby/data.h
+3
-4
src/compile.h
src/compile.h
+12
-0
src/gc.h
src/gc.h
+8
-0
No files found.
include/mruby/data.h
View file @
bbf7b0ce
...
...
@@ -4,14 +4,13 @@
** See Copyright Notice in mruby.h
*/
#ifndef RUBY_DATA_H
#define RUBY_DATA_H 1
#ifndef
M
RUBY_DATA_H
#define
M
RUBY_DATA_H 1
#if defined(__cplusplus)
extern
"C"
{
#endif
struct
mrb_data_type
{
const
char
*
struct_name
;
void
(
*
dfree
)(
mrb_state
*
mrb
,
void
*
);
...
...
@@ -48,4 +47,4 @@ void *mrb_check_datatype(mrb_state *mrb, mrb_value, const struct mrb_data_type*)
}
/* extern "C" { */
#endif
#endif
/* RUBY_DATA_H */
#endif
/*
M
RUBY_DATA_H */
src/compile.h
View file @
bbf7b0ce
...
...
@@ -4,6 +4,13 @@
** See Copyright Notice in mruby.h
*/
#ifndef RUBY_COMPILE_H
#define RUBY_COMPILE_H 1
#if defined(__cplusplus)
extern
"C"
{
#endif
#include "mruby.h"
#include <stdio.h>
#include <setjmp.h>
...
...
@@ -93,3 +100,8 @@ int mrb_compile_file(mrb_state*,FILE*);
int
mrb_compile_string
(
mrb_state
*
,
char
*
);
int
mrb_compile_nstring
(
mrb_state
*
,
char
*
,
size_t
);
#if defined(__cplusplus)
}
/* extern "C" { */
#endif
#endif
/* MRUBY_COMPILE_H */
src/gc.h
View file @
bbf7b0ce
...
...
@@ -7,6 +7,10 @@
#ifndef MRUBY_GC_H
#define MRUBY_GC_H
#if defined(__cplusplus)
extern
"C"
{
#endif
typedef
struct
{
union
{
struct
free_obj
{
...
...
@@ -41,4 +45,8 @@ void mrb_gc_mark_ht(mrb_state*, struct RHash*);
size_t
mrb_gc_mark_ht_size
(
mrb_state
*
,
struct
RHash
*
);
void
mrb_gc_free_ht
(
mrb_state
*
,
struct
RHash
*
);
#if defined(__cplusplus)
}
/* extern "C" { */
#endif
#endif
/* MRUBY_GC_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment