Ruby
4.1.0dev (2026-05-15 revision a8bcae043f931d9b79f1cb1fe2c021985d07b984)
include
ruby
internal
attr
format.h
Go to the documentation of this file.
1
#ifndef RBIMPL_ATTR_FORMAT_H
/*-*-C++-*-vi:se ft=cpp:*/
2
#define RBIMPL_ATTR_FORMAT_H
23
#include "
ruby/internal/has/attribute.h
"
24
25
#if defined(__MINGW32__)
26
#include <stdio.h>
/* for __MINGW_PRINTF_FORMAT */
27
#endif
28
30
#if RBIMPL_HAS_ATTRIBUTE(format)
31
# define RBIMPL_ATTR_FORMAT(x, y, z) __attribute__((__format__(x, y, z)))
32
#else
33
# define RBIMPL_ATTR_FORMAT(x, y, z)
/* void */
34
#endif
35
36
#if defined(__MINGW_PRINTF_FORMAT)
37
# define RBIMPL_PRINTF_FORMAT __MINGW_PRINTF_FORMAT
38
#else
39
# define RBIMPL_PRINTF_FORMAT __printf__
40
#endif
41
42
#endif
/* RBIMPL_ATTR_FORMAT_H */
attribute.h
Defines RBIMPL_HAS_ATTRIBUTE.
Generated by
1.9.8