mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
include/ruby/defines.h: add doxygen
The only thing that remains in this file which is still worth
documenting is the RUBY macro. Everything else were split into many
files in
1ff4cee2b1
[ci skip]
This commit is contained in:
parent
6e8e2b467b
commit
1563526edf
Notes:
git
2021-09-10 20:01:07 +09:00
1 changed files with 9 additions and 1 deletions
|
@ -78,16 +78,24 @@
|
||||||
#include "ruby/internal/dosish.h"
|
#include "ruby/internal/dosish.h"
|
||||||
#include "ruby/missing.h"
|
#include "ruby/missing.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Asserts that the compilation unit includes Ruby's CAPI. This has been here
|
||||||
|
* since the very beginning (at least since version 0.49).
|
||||||
|
*/
|
||||||
#define RUBY
|
#define RUBY
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
# /** This is expanded to nothing for non-GCC compilers. */
|
||||||
# define RB_GNUC_EXTENSION __extension__
|
# define RB_GNUC_EXTENSION __extension__
|
||||||
|
# /** This is expanded to the passed token for non-GCC compilers. */
|
||||||
# define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
|
# define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
|
||||||
#else
|
#else
|
||||||
# define RB_GNUC_EXTENSION
|
# define RB_GNUC_EXTENSION
|
||||||
# define RB_GNUC_EXTENSION_BLOCK(x) (x)
|
# define RB_GNUC_EXTENSION_BLOCK(x) (x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/** @cond INTERNAL_MACRO */
|
||||||
|
|
||||||
/* :FIXME: Can someone tell us why is this macro defined here? @shyouhei
|
/* :FIXME: Can someone tell us why is this macro defined here? @shyouhei
|
||||||
* thinks this is a truly internal macro but cannot move around because he
|
* thinks this is a truly internal macro but cannot move around because he
|
||||||
* doesn't understand the reason of this arrangement. */
|
* doesn't understand the reason of this arrangement. */
|
||||||
|
@ -104,5 +112,5 @@ RBIMPL_SYMBOL_EXPORT_END()
|
||||||
#else
|
#else
|
||||||
# define FLUSH_REGISTER_WINDOWS ((void)0)
|
# define FLUSH_REGISTER_WINDOWS ((void)0)
|
||||||
#endif
|
#endif
|
||||||
|
/** @endcond */
|
||||||
#endif /* RUBY_DEFINES_H */
|
#endif /* RUBY_DEFINES_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue