view gcc/testsuite/g++.dg/ext/gnu-inline-common.h @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

#ifndef gnu
# define gnu_inline __attribute__((gnu_inline)) inline
#endif

#define declspec(spec, name) spec int name (void)
#ifdef IN_CLASS
# define decl(spec, name)
#else
# define decl(spec, name) defpfx declspec(spec, name);
#endif
#define def(spec, name, ret) defpfx declspec(spec, name) { return ret; }
#define gnuindef(name, ret) def(gnu_inline, name, ret)

#ifndef pfx
# ifdef IN_CLASS
#  define pfx(x) IN_CLASS::x
# else
#  define pfx(x) x
# endif
#endif

#ifndef defpfx
# define defpfx
#endif