diff options
| author | Mike Pall <mike> | 2025-11-27 20:02:00 +0100 |
|---|---|---|
| committer | Mike Pall <mike> | 2025-11-27 20:02:00 +0100 |
| commit | 6b35217b3d96dc9f468b4ce47e9d73c02cef110a (patch) | |
| tree | 09403762147ba0216d30946729299e0622cf60ce /src | |
| parent | 1acb204447aaa75e5338c3bbfd062aae64bc5959 (diff) | |
| download | luajit-6b35217b3d96dc9f468b4ce47e9d73c02cef110a.tar.gz luajit-6b35217b3d96dc9f468b4ce47e9d73c02cef110a.tar.bz2 luajit-6b35217b3d96dc9f468b4ce47e9d73c02cef110a.zip | |
Back out MSVC LJ_CONSTF declaration.
The reason for the error message is still unclear. #1412.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lj_def.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lj_def.h b/src/lj_def.h index f34b1a39..25e827c4 100644 --- a/src/lj_def.h +++ b/src/lj_def.h | |||
| @@ -246,7 +246,12 @@ 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 | ||
| 250 | /* Unclear why this doesn't work, see #1412. */ | ||
| 249 | #define LJ_CONSTF __declspec(nothrow noalias) | 251 | #define LJ_CONSTF __declspec(nothrow noalias) |
| 252 | #else | ||
| 253 | #define LJ_CONSTF | ||
| 254 | #endif | ||
| 250 | #if defined(_M_IX86) | 255 | #if defined(_M_IX86) |
| 251 | #define LJ_FASTCALL __fastcall | 256 | #define LJ_FASTCALL __fastcall |
| 252 | #endif | 257 | #endif |
