Move preprocessor header to hpp suffix

This commit is contained in:
Danny Robson 2012-05-03 18:09:06 +10:00
parent b6f9bf9ebd
commit 100af04e77
3 changed files with 4 additions and 6 deletions

View File

@ -70,6 +70,7 @@ UTIL_FILES = \
point.hpp \ point.hpp \
pool.cpp \ pool.cpp \
pool.hpp \ pool.hpp \
preprocessor.hpp \
random.cpp \ random.cpp \
random.hpp \ random.hpp \
range.cpp \ range.cpp \

View File

@ -28,9 +28,6 @@
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
#define CONCATENATE_DETAIL(x, y) x##y
#define CONCATENATE(x, y) CONCATENATE_DETAIL(x, y)
#define raii CONCATENATE(unique, __COUNTER__)
#define trace { \ #define trace { \
std::cerr << __FILE__ << ":" << __func__ << ":" << __LINE__ << std::endl; \ std::cerr << __FILE__ << ":" << __func__ << ":" << __LINE__ << std::endl; \

View File

@ -14,11 +14,11 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with libgim. If not, see <http://www.gnu.org/licenses/>. * along with libgim. If not, see <http://www.gnu.org/licenses/>.
* *
* Copyright 2012 Danny Robson <danny@blubinc.net> * Copyright 2012 Danny Robson <danny@nerdcruft.net>
*/ */
#ifndef __PREPROCESSOR_HPP #ifndef __UTIL_PREPROCESSOR_HPP
#define __PREPROCESSOR_HPP #define __UTIL_PREPROCESSOR_HPP
#define CONCATENATE_DETAIL(x, y) x##y #define CONCATENATE_DETAIL(x, y) x##y
#define CONCATENATE(x, y) CONCATENATE_DETAIL(x, y) #define CONCATENATE(x, y) CONCATENATE_DETAIL(x, y)