mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-17 00:24:23 -04:00
libs: add ongoing work to facilitate hactool rewrite
This commit is contained in:
parent
706b8492fd
commit
13697fa921
34 changed files with 1829 additions and 216 deletions
|
@ -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__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue