mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-31 14:58:22 -04:00
ams: avoid UB infinite loops
This commit is contained in:
parent
874208b44a
commit
51b5c3d87d
9 changed files with 17 additions and 10 deletions
|
@ -65,3 +65,5 @@
|
|||
#define AMS_ASSUME(expr) do { if (!static_cast<bool>((expr))) { __builtin_unreachable(); } } while (0)
|
||||
|
||||
#define AMS_CURRENT_FUNCTION_NAME __FUNCTION__
|
||||
|
||||
#define AMS_INFINITE_LOOP() do { __asm__ __volatile__("" ::: "memory"); } while (1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue