FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mruby/include/mruby/common.h at master · drbrain/mruby · GitHub
drbrain
/
mruby
Public
forked from
mruby/mruby
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
mruby
/
include
/
mruby
/
common.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
67 lines (56 loc) · 1.37 KB
Breadcrumbs
mruby
/
include
/
mruby
/
common.h
Copy path
File metadata and controls
67 lines (56 loc) · 1.37 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
**"common.h - mruby common platform definition"
**
** See Copyright Notice in mruby.h
*/
#ifndef
MRUBY_COMMON_H
#define
MRUBY_COMMON_H
#ifdef
__cplusplus
# define
MRB_BEGIN_DECL
extern "C" {
# define
MRB_END_DECL
}
#else
/** Start declarations in C mode */
# define
MRB_BEGIN_DECL
/** End declarations in C mode */
# define
MRB_END_DECL
#endif
/**
* Shared compiler macros
*/
MRB_BEGIN_DECL
/** Declare a function that never returns. */
#if
__STDC_VERSION__
>=
201112L
# define
mrb_noreturn
_Noreturn
#elif
defined
__GNUC__
&&
!defined
__STRICT_ANSI__
# define
mrb_noreturn
__attribute__((noreturn))
#elif
defined
_MSC_VER
# define
mrb_noreturn
__declspec(noreturn)
#else
# define
mrb_noreturn
#endif
/** Mark a function as deprecated. */
#if
defined
__GNUC__
&&
!defined
__STRICT_ANSI__
# define
mrb_deprecated
__attribute__((deprecated))
#elif
defined
_MSC_VER
# define
mrb_deprecated
__declspec(deprecated)
#else
# define
mrb_deprecated
#endif
/** Declare a function as always inlined. */
#if
defined(
_MSC_VER
)
# define
MRB_INLINE
static __inline
#else
# define
MRB_INLINE
static inline
#endif
/** Declare a public MRuby API function. */
#if
defined(
MRB_BUILD_AS_DLL
)
#if
defined(
MRB_CORE
)
||
defined(
MRB_LIB
)
# define
MRB_API
__declspec(dllexport)
#else
# define
MRB_API
__declspec(dllimport)
#endif
#else
# define
MRB_API
extern
#endif
MRB_END_DECL
#endif
/* MRUBY_COMMON_H */
Back
|
FazBrowse Home
|
New Git URL