mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-01-31 09:15:11 +00:00
12 lines
246 B
C++
12 lines
246 B
C++
// https://en.cppreference.com/w/cpp/feature_test
|
|
#include <exception>
|
|
int main(int argc, char* argv[])
|
|
{
|
|
#if __cpp_lib_uncaught_exceptions >= 201411L
|
|
int x = std::uncaught_exceptions();
|
|
#else
|
|
int x[-1];
|
|
#endif
|
|
return 0;
|
|
}
|