diff options
| author | Mike Pall <mike> | 2025-11-27 20:04:42 +0100 |
|---|---|---|
| committer | Mike Pall <mike> | 2025-11-27 20:04:42 +0100 |
| commit | b973c6243d4aab73e5c3df0d7264258b0672fa7e (patch) | |
| tree | 4c8e7b6b9e72f313e60c92a4b2b65c05281baacf /src | |
| parent | 6b35217b3d96dc9f468b4ce47e9d73c02cef110a (diff) | |
| download | luajit-b973c6243d4aab73e5c3df0d7264258b0672fa7e.tar.gz luajit-b973c6243d4aab73e5c3df0d7264258b0672fa7e.tar.bz2 luajit-b973c6243d4aab73e5c3df0d7264258b0672fa7e.zip | |
Fix MSVC LJ_CONSTF declaration.
Reading MS docs is hard. #1412
Diffstat (limited to 'src')
| -rw-r--r-- | src/lj_def.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lj_def.h b/src/lj_def.h index 25e827c4..77852912 100644 --- a/src/lj_def.h +++ b/src/lj_def.h | |||
| @@ -246,12 +246,7 @@ static LJ_AINLINE uint32_t lj_getu32(const void *p) | |||
| 246 | #define LJ_INLINE __inline | 246 | #define LJ_INLINE __inline |
| 247 | #define LJ_AINLINE __forceinline | 247 | #define LJ_AINLINE __forceinline |
| 248 | #define LJ_NOINLINE __declspec(noinline) | 248 | #define LJ_NOINLINE __declspec(noinline) |
| 249 | #if MSVC_BROKEN | 249 | #define LJ_CONSTF __declspec(noalias) |
| 250 | /* Unclear why this doesn't work, see #1412. */ | ||
| 251 | #define LJ_CONSTF __declspec(nothrow noalias) | ||
| 252 | #else | ||
| 253 | #define LJ_CONSTF | ||
| 254 | #endif | ||
| 255 | #if defined(_M_IX86) | 250 | #if defined(_M_IX86) |
| 256 | #define LJ_FASTCALL __fastcall | 251 | #define LJ_FASTCALL __fastcall |
| 257 | #endif | 252 | #endif |
