提交scripts

This commit is contained in:
hesuicong committed 2025-07-21 10:09:12 +08:00
1 parent 82caf72036
commit 07dabbd186
224 files changed
+130146

No files matched your search

+47
View File
@@ -0,0 +1,47 @@
////////////////////////////////////////////////////////////////////
// Common.cpp
//
// Copyright 2007 cDc@seacave
// Distributed under the Boost Software License, Version 1.0
// (See http://www.boost.org/LICENSE_1_0.txt)
// Source file that includes just the standard includes
// Common.pch will be the pre-compiled header
// Common.obj will contain the pre-compiled type information
#include "Common.h"
namespace SEACAVE {
#if TD_VERBOSE == TD_VERBOSE_ON
int g_nVerbosityLevel(2);
#endif
#if TD_VERBOSE == TD_VERBOSE_DEBUG
int g_nVerbosityLevel(3);
#endif
String g_strWorkingFolder;
String g_strWorkingFolderFull;
} // namespace SEACAVE
#ifdef _USE_BOOST
#ifdef BOOST_NO_EXCEPTIONS
#if (BOOST_VERSION / 100000) > 1 || (BOOST_VERSION / 100 % 1000) > 72
#include <boost/assert/source_location.hpp>
#endif
namespace boost {
void throw_exception(std::exception const & e) {
VERBOSE("exception thrown: %s", e.what());
ASSERT("boost exception thrown" == NULL);
exit(EXIT_FAILURE);
}
#if (BOOST_VERSION / 100000) > 1 || (BOOST_VERSION / 100 % 1000) > 72
void throw_exception(std::exception const & e, boost::source_location const & loc) {
std::ostringstream ostr; ostr << loc;
VERBOSE("exception thrown at %s: %s", ostr.str().c_str(), e.what());
ASSERT("boost exception thrown" == NULL);
exit(EXIT_FAILURE);
}
#endif
} // namespace boost
#endif
#endif