tcalc 0.2.0
 
Loading...
Searching...
No Matches
common.hpp
Go to the documentation of this file.
1
12#pragma once
13
14#if defined _WIN32 || defined __CYGWIN__
15#ifdef BUILDING_TCALC
16#define TCALC_PUBLIC __declspec(dllexport)
17#else
18#define TCALC_PUBLIC __declspec(dllimport)
19#endif
20#else
21#ifdef BUILDING_TCALC
22#define TCALC_PUBLIC __attribute__((visibility("default")))
23#else
24#define TCALC_PUBLIC
25#endif
26#endif
27
28#if defined _WIN32 || defined __CYGWIN__
29#define TCALC_INLINE inline __forceinline
30#else
31#define TCALC_INLINE inline __attribute__((always_inline))
32#endif
33
34#if defined _WIN32 || defined __CYGWIN__
35#define TCALC_PRINTF_FORMAT(fmt_idx, arg_idx)
36#else
37#define TCALC_PRINTF_FORMAT(fmt_idx, arg_idx) \
38 __attribute__((format(printf, fmt_idx, arg_idx)))
39#endif