2 * @file UtilityMacros.h
4 * @ingroup generic-util
8 * Copyright 2012 Joel Baxter
10 * This file is part of MeshTex.
12 * MeshTex is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 2 of the License, or
15 * (at your option) any later version.
17 * MeshTex is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with MeshTex. If not, see <http://www.gnu.org/licenses/>.
26 #if !defined(INCLUDED_UTILITYMACROS_H)
27 #define INCLUDED_UTILITYMACROS_H
30 * Convert a token to a string at compile-time.
32 * @param A The token to stringify.
34 #define STRINGIFY(A) #A
37 * Convert a macro's value to a string at compile-time.
39 * @param A The name of the macro to process.
41 #define STRINGIFY_MACRO(A) STRINGIFY(A)
43 #endif // #if !defined(INCLUDED_UTILITYMACROS_H)