Ruby  3.4.0dev (2024-11-22 revision 0989400a925cd201defdca9eb28eb87200b30785)
Macros
defines.h File Reference

(0989400a925cd201defdca9eb28eb87200b30785)

#include "ruby/internal/config.h"
#include <stdio.h>
#include "ruby/internal/dllexport.h"
#include "ruby/internal/xmalloc.h"
#include "ruby/backward/2/assume.h"
#include "ruby/backward/2/attributes.h"
#include "ruby/backward/2/bool.h"
#include "ruby/backward/2/long_long.h"
#include "ruby/backward/2/stdalign.h"
#include "ruby/backward/2/stdarg.h"
#include "ruby/internal/dosish.h"
#include "ruby/missing.h"
Include dependency graph for defines.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RUBY
 Asserts that the compilation unit includes Ruby's CAPI. More...
 
#define RB_GNUC_EXTENSION   __extension__
 This is expanded to nothing for non-GCC compilers. More...
 
#define RB_GNUC_EXTENSION_BLOCK(x)   __extension__ ({ x; })
 This is expanded to the passed token for non-GCC compilers. More...
 

Detailed Description

Author
$Author$
Date
Wed May 18 00:21:44 JST 1994

Definition in file defines.h.

Macro Definition Documentation

◆ RB_GNUC_EXTENSION

#define RB_GNUC_EXTENSION   __extension__

This is expanded to nothing for non-GCC compilers.

Definition at line 89 of file defines.h.

◆ RB_GNUC_EXTENSION_BLOCK

#define RB_GNUC_EXTENSION_BLOCK (   x)    __extension__ ({ x; })

This is expanded to the passed token for non-GCC compilers.

Definition at line 91 of file defines.h.

◆ RUBY

#define RUBY

Asserts that the compilation unit includes Ruby's CAPI.

This has been here since the very beginning (at least since version 0.49).

Definition at line 85 of file defines.h.