Ruby
4.1.0dev (2026-10-30 revision d531b6bc5591d858031dca55b52ea12826359a19)
prism
compiler
format.h
Go to the documentation of this file.
1
4
#ifndef PRISM_COMPILER_FORMAT_H
5
#define PRISM_COMPILER_FORMAT_H
6
7
#include <stdio.h>
8
15
#if defined(__GNUC__)
16
# if defined(__MINGW_PRINTF_FORMAT)
17
# define PRISM_ATTRIBUTE_FORMAT(fmt_idx_, arg_idx_) __attribute__((format(__MINGW_PRINTF_FORMAT, fmt_idx_, arg_idx_)))
18
# else
19
# define PRISM_ATTRIBUTE_FORMAT(fmt_idx_, arg_idx_) __attribute__((format(printf, fmt_idx_, arg_idx_)))
20
# endif
21
#elif defined(__clang__)
22
# define PRISM_ATTRIBUTE_FORMAT(fmt_idx_, arg_idx_) __attribute__((__format__(__printf__, fmt_idx_, arg_idx_)))
23
#else
24
# define PRISM_ATTRIBUTE_FORMAT(fmt_idx_, arg_idx_)
25
#endif
26
27
#endif
Generated by
1.9.8