blob: 6d093d75a2d691bd9be7b29a4ab9ff277320cc5c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef PTX_MACROS_H_INCLDUED
#define PTX_MACROS_H_INCLDUED
#include "config.h"
#define UNUSED(...) ((void)((void) __VA_ARGS__))
#define NO_OP_DECL _Static_assert(1, "")
#define PTX_UNAVAILABLE_DEF(_def) /* definition hidden */ NO_OP_DECL
#ifdef PTX_PLUGIN
#define PTX_API PTX_IMPORT
#define PTX_INTERNAL(_def) NO_OP_DECL
#else
#define PTX_API PTX_EXPORT
#define PTX_INTERNAL(_def) _def
#endif
#define PTX_STR(_x) PTX_STR2(_x)
#define PTX_STR2(_x) #_x
#endif /* include guard */
|