diff options
author | Mike Pall <mike> | 2022-06-08 14:24:57 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2022-06-08 14:24:57 +0200 |
commit | 7beb3375e34583e01e5c6ab370721aaea56226cc (patch) | |
tree | 0c35ea9901f0e9ceed0fd7ee4096a318b980d536 /src/lj_arch.h | |
parent | 96157d360db9dde81e7a3752f5c060f5111e1b07 (diff) | |
download | luajit-7beb3375e34583e01e5c6ab370721aaea56226cc.tar.gz luajit-7beb3375e34583e01e5c6ab370721aaea56226cc.tar.bz2 luajit-7beb3375e34583e01e5c6ab370721aaea56226cc.zip |
Add Nintendo Switch port.
Contributed by Swyter and vdweller84.
Diffstat (limited to 'src/lj_arch.h')
-rw-r--r-- | src/lj_arch.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lj_arch.h b/src/lj_arch.h index 1852c497..882c99cb 100644 --- a/src/lj_arch.h +++ b/src/lj_arch.h | |||
@@ -162,6 +162,13 @@ | |||
162 | #define LJ_TARGET_GC64 1 | 162 | #define LJ_TARGET_GC64 1 |
163 | #endif | 163 | #endif |
164 | 164 | ||
165 | #ifdef __NX__ | ||
166 | #define LJ_TARGET_NX 1 | ||
167 | #define LJ_TARGET_CONSOLE 1 | ||
168 | #undef NULL | ||
169 | #define NULL ((void*)0) | ||
170 | #endif | ||
171 | |||
165 | #ifdef _UWP | 172 | #ifdef _UWP |
166 | #define LJ_TARGET_UWP 1 | 173 | #define LJ_TARGET_UWP 1 |
167 | #if LUAJIT_TARGET == LUAJIT_ARCH_X64 | 174 | #if LUAJIT_TARGET == LUAJIT_ARCH_X64 |