libexo/sc7fw: support release/debug/audit

This commit is contained in:
Michael Scire 2020-11-14 12:17:38 -08:00
parent f74527d93c
commit 71a38ae74d
14 changed files with 413 additions and 47 deletions

View file

@ -27,7 +27,7 @@ namespace ams::diag {
}
#ifdef AMS_ENABLE_DEBUG_PRINT
#ifdef AMS_ENABLE_DETAILED_ASSERTIONS
#define AMS_CALL_ASSERT_FAIL_IMPL(cond, ...) ::ams::diag::AssertionFailureImpl(__FILE__, __LINE__, __PRETTY_FUNCTION__, cond, 0, ## __VA_ARGS__)
#define AMS_CALL_ABORT_IMPL(cond, ...) ::ams::diag::AbortImpl(__FILE__, __LINE__, __PRETTY_FUNCTION__, cond, 0, ## __VA_ARGS__)
#else

View file

@ -17,15 +17,29 @@
#include <vapours/includes.hpp>
#include <vapours/defines.hpp>
#if 0
#define AMS_BUILD_FOR_AUDITING
#ifdef AMS_BUILD_FOR_AUDITING
#define AMS_BUILD_FOR_DEBUGGING
#if !defined(AMS_FORCE_DISABLE_DETAILED_ASSERTIONS)
#define AMS_ENABLE_DETAILED_ASSERTIONS
#endif
#ifdef AMS_BUILD_FOR_AUDITING
#define AMS_BUILD_FOR_DEBUGGING
#endif
#ifdef AMS_BUILD_FOR_DEBUGGING
#define AMS_ENABLE_ASSERTIONS
#define AMS_ENABLE_DEBUG_PRINT
#if !defined(AMS_ENABLE_DETAILED_ASSERTIONS) && !defined(AMS_FORCE_DISABLE_DETAILED_ASSERTIONS)
#if !defined(ATMOSPHERE_IS_EXOSPHERE) || defined(AMS_FORCE_ENABLE_DETAILED_ASSERTIONS)
#define AMS_ENABLE_DETAILED_ASSERTIONS
#endif
#endif
#endif