diff options
Diffstat (limited to 'zap/source/any/bs')
-rw-r--r-- | zap/source/any/bs/trap.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/zap/source/any/bs/trap.c b/zap/source/any/bs/trap.c new file mode 100644 index 0000000..9428d44 --- /dev/null +++ b/zap/source/any/bs/trap.c @@ -0,0 +1,16 @@ +/* + Copyright 2022-2023 Gabriel Jensen. + This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. + If a copy of the MPL was not distributed with this file, You can obtain one at <https://mozilla.org/MPL/2.0>. +*/ + +#include <zap/bs.h> + +void zap_priv_trap(void) { +#if defined(__has_builtin) +#if __has_builtin(__builtin_trap) + __builtin_trap(); +#endif +#endif + for (;;) {} +} |