OGLplus
(0.59.0)
a C++ wrapper for rendering APIs
eagine
preprocessor.hpp
Go to the documentation of this file.
1
9
#ifndef EAGINE_PREPROCESSOR_HPP
10
#define EAGINE_PREPROCESSOR_HPP
11
12
#define EAGINE_STRINGIFY(EXPR) EAGINE_DO_STRINGIFY(EXPR)
13
#define EAGINE_DO_STRINGIFY(EXPR) #EXPR
14
15
#define EAGINE_JOIN(L, R) EAGINE_DO_JOIN(L, R)
16
#define EAGINE_DO_JOIN(L, R) EAGINE_DO_JOIN2(L, R)
17
#define EAGINE_DO_JOIN2(L, R) L##R
18
19
#if defined(__clang__) || defined(__GNUC__)
20
21
#define EAGINE_PRAGMA(x) _Pragma(EAGINE_STRINGIFY(x))
22
23
#elif defined(_MSC_VER)
24
25
#define EAGINE_PRAGMA(x) __pragma(x)
26
27
#endif
28
29
#endif // EAGINE_PREPROCESSOR_HPP
Copyright © 2015-2021
Matúš Chochlík
.
<
chochlik -at -gmail.com
>
Documentation generated on Tue Apr 13 2021 by
Doxygen
(version 1.8.17).