Ruby 4.1.0dev (2026-03-23 revision 305b563ec974b554b2c00d2724c62a4abe99acc7)
flex_array.h
Go to the documentation of this file.
1
4#ifndef PRISM_COMPILER_FLEX_ARRAY_H
5#define PRISM_COMPILER_FLEX_ARRAY_H
6
11#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
12 #define PM_FLEX_ARRAY_LENGTH /* data[] */
13#elif defined(__GNUC__) && !defined(__STRICT_ANSI__)
14 #define PM_FLEX_ARRAY_LENGTH 0 /* data[0] */
15#else
16 #define PM_FLEX_ARRAY_LENGTH 1 /* data[1] */
17#endif
18
19#endif