2013-08-08 09:54:33 +00:00
|
|
|
/*=============================================================================
|
2016-02-25 09:48:28 +00:00
|
|
|
Copyright (c) 2011-2016 Bolero MURAKAMI
|
2013-08-08 09:54:33 +00:00
|
|
|
https://github.com/bolero-MURAKAMI/Sprout
|
|
|
|
|
|
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
=============================================================================*/
|
2011-10-12 20:28:33 +00:00
|
|
|
#ifndef SPROUT_PREPROCESSOR_UNIQUE_STRING_HPP
|
|
|
|
#define SPROUT_PREPROCESSOR_UNIQUE_STRING_HPP
|
|
|
|
|
|
|
|
#include <sprout/config.hpp>
|
2012-04-14 03:31:47 +00:00
|
|
|
#include <sprout/preprocessor/stringize_all.hpp>
|
|
|
|
#include <sprout/preprocessor/str_all.hpp>
|
2014-01-27 10:09:00 +00:00
|
|
|
#include <sprout/preprocessor/some_number.hpp>
|
2011-10-12 20:28:33 +00:00
|
|
|
|
2016-03-18 15:21:43 +00:00
|
|
|
//
|
|
|
|
// SPROUT_PP_UNIQUE_STRING_
|
|
|
|
// SPROUT_PP_UNIQUE_WSTRING_
|
|
|
|
// SPROUT_PP_UNIQUE_U16STRING_
|
|
|
|
// SPROUT_PP_UNIQUE_U32STRING_
|
|
|
|
//
|
|
|
|
#define SPROUT_PP_UNIQUE_STRING_(N) \
|
2016-03-18 15:44:01 +00:00
|
|
|
SPROUT_PP_STRINGIZE(N) SPROUT_PP_STR(" ") SPROUT_PP_STRINGIZE(SPROUT_PP_SOME_NUMBER()) \
|
2016-03-18 15:39:28 +00:00
|
|
|
SPROUT_PP_STR(" : ") SPROUT_PP_STR(__DATE__) SPROUT_PP_STR(" ") SPROUT_PP_STR(__TIME__) \
|
2016-03-18 15:21:43 +00:00
|
|
|
SPROUT_PP_STR(" : ") SPROUT_PP_STR(__FILE__) SPROUT_PP_STR(":") SPROUT_PP_STRINGIZE(__LINE__)
|
|
|
|
#define SPROUT_PP_UNIQUE_WSTRING_(N) \
|
2016-03-18 15:44:01 +00:00
|
|
|
SPROUT_PP_WSTRINGIZE(N) SPROUT_PP_STR(" ") SPROUT_PP_WSTRINGIZE(SPROUT_PP_SOME_NUMBER()) \
|
2016-03-18 15:39:28 +00:00
|
|
|
SPROUT_PP_WSTR(" : ") SPROUT_PP_WSTR(__DATE__) SPROUT_PP_WSTR(" ") SPROUT_PP_WSTR(__TIME__) \
|
2016-03-18 15:21:43 +00:00
|
|
|
SPROUT_PP_WSTR(" : ") SPROUT_PP_WSTR(__FILE__) SPROUT_PP_WSTR(":") SPROUT_PP_WSTRINGIZE(__LINE__)
|
|
|
|
#define SPROUT_PP_UNIQUE_U16STRING_(N) \
|
2016-03-18 15:44:01 +00:00
|
|
|
SPROUT_PP_U16STRINGIZE(N) SPROUT_PP_STR(" ") SPROUT_PP_U16STRINGIZE(SPROUT_PP_SOME_NUMBER()) \
|
2016-03-18 15:39:28 +00:00
|
|
|
SPROUT_PP_U16STR(" : ") SPROUT_PP_U16STR(__DATE__) SPROUT_PP_U16STR(" ") SPROUT_PP_U16STR(__TIME__) \
|
2016-03-18 15:21:43 +00:00
|
|
|
SPROUT_PP_U16STR(" : ") SPROUT_PP_U16STR(__FILE__) SPROUT_PP_U16STR(":") SPROUT_PP_U16STRINGIZE(__LINE__)
|
|
|
|
#define SPROUT_PP_UNIQUE_U32STRING_(N) \
|
2016-03-18 15:44:01 +00:00
|
|
|
SPROUT_PP_U32STRINGIZE(N) SPROUT_PP_STR(" ") SPROUT_PP_U32STRINGIZE(SPROUT_PP_SOME_NUMBER()) \
|
2016-03-18 15:39:28 +00:00
|
|
|
SPROUT_PP_U32STR(" : ") SPROUT_PP_U32STR(__DATE__) SPROUT_PP_U32STR(" ") SPROUT_PP_U32STR(__TIME__) \
|
2016-03-18 15:21:43 +00:00
|
|
|
SPROUT_PP_U32STR(" : ") SPROUT_PP_U32STR(__FILE__) SPROUT_PP_U32STR(":") SPROUT_PP_U32STRINGIZE(__LINE__)
|
|
|
|
|
2011-10-12 20:28:33 +00:00
|
|
|
//
|
|
|
|
// SPROUT_PP_UNIQUE_STRING
|
2012-04-14 03:31:47 +00:00
|
|
|
// SPROUT_PP_UNIQUE_WSTRING
|
|
|
|
// SPROUT_PP_UNIQUE_U16STRING
|
|
|
|
// SPROUT_PP_UNIQUE_U32STRING
|
2011-10-12 20:28:33 +00:00
|
|
|
//
|
2014-01-27 10:09:00 +00:00
|
|
|
#define SPROUT_PP_UNIQUE_STRING \
|
2016-03-18 15:21:43 +00:00
|
|
|
SPROUT_PP_UNIQUE_STRING_(SPROUT_PP_SOME_NUMBER())
|
2014-01-27 10:16:32 +00:00
|
|
|
#define SPROUT_PP_UNIQUE_WSTRING \
|
2016-03-18 15:21:43 +00:00
|
|
|
SPROUT_PP_UNIQUE_WSTRING_(SPROUT_PP_SOME_NUMBER())
|
2014-01-27 10:16:32 +00:00
|
|
|
#define SPROUT_PP_UNIQUE_U16STRING \
|
2016-03-18 15:21:43 +00:00
|
|
|
SPROUT_PP_UNIQUE_U16STRING_(SPROUT_PP_SOME_NUMBER())
|
2014-01-27 10:16:32 +00:00
|
|
|
#define SPROUT_PP_UNIQUE_U32STRING \
|
2016-03-18 15:21:43 +00:00
|
|
|
SPROUT_PP_UNIQUE_U32STRING_(SPROUT_PP_SOME_NUMBER())
|
2011-10-12 20:28:33 +00:00
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_PREPROCESSOR_UNIQUE_STRING_HPP
|