libs: add ongoing work to facilitate hactool rewrite

This commit is contained in:
Michael Scire authored and SciresM committed 2022-03-21 17:21:44 -07:00
1 parent 706b8492fd
commit 13697fa921
34 files changed
+1829 -216

No files matched your search

@@ -17,8 +17,17 @@
#include <vapours/includes.hpp>
#include <vapours/defines.hpp>
#define AMS_PRAGMA(X) \
_Pragma(#X)
#define AMS_PRAGMA_BEGIN_OPTIMIZE_O3()
#define AMS_PRAGMA_BEGIN_OPTIMIZE_OS()
#define AMS_PRAGMA_END_OPTIMIZE()
#define AMS_PRAGMA_BEGIN_PACK(n) \
AMS_PRAGMA(pack(push, n))
#define AMS_PRAGMA_END_PACK() \
AMS_PRAGMA(pack(pop))
#define AMS_CONCEPTS_REQUIRES_IF_SUPPORTED(__EXPR__)
@@ -17,6 +17,9 @@
#include <vapours/includes.hpp>
#include <vapours/defines.hpp>
#define AMS_PRAGMA(X) \
_Pragma(#X)
#define AMS_PRAGMA_BEGIN_OPTIMIZE_O3() \
_Pragma("GCC push_options") \
_Pragma("GCC optimize (\"-O3\")")
@@ -28,4 +31,10 @@
#define AMS_PRAGMA_END_OPTIMIZE() \
_Pragma("GCC pop_options")
#define AMS_PRAGMA_BEGIN_PACK(n) \
AMS_PRAGMA(pack(push, n))
#define AMS_PRAGMA_END_PACK() \
AMS_PRAGMA(pack(pop))
#define AMS_CONCEPTS_REQUIRES_IF_SUPPORTED(__EXPR__) requires (__EXPR__)