forked from boostorg/preprocessor
Added OPT macro to determine whether C++20's __VA_OPT__ is supported or not. Updated the undocumented variadic IS_EMPTY to use the functionality of __VA_OPT__ if it exists to provide perfect functionality for testing for emptiness.
This commit is contained in:
21
test/test.h
21
test/test.h
@ -14,24 +14,7 @@
|
||||
# ifndef BOOST_LIBS_PREPROCESSOR_REGRESSION_TEST_H
|
||||
# define BOOST_LIBS_PREPROCESSOR_REGRESSION_TEST_H
|
||||
#
|
||||
# include <boost/preprocessor/cat.hpp>
|
||||
# include <libs/preprocessor/test/test_macro.h>
|
||||
# include <libs/preprocessor/test/test_main.h>
|
||||
#
|
||||
# define BEGIN typedef int BOOST_PP_CAT(test_, __LINE__)[((
|
||||
# define END )==1) ? 1 : -1];
|
||||
|
||||
#if defined(__cplusplus)
|
||||
#include <cstdio>
|
||||
#if !defined(_STLP_MSVC) || _STLP_MSVC >= 1300
|
||||
namespace std { }
|
||||
using namespace std;
|
||||
#endif
|
||||
#else
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
int main(void) {
|
||||
printf("pass " __TIME__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
# endif
|
||||
|
Reference in New Issue
Block a user