]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Fix MSVC LJ_CONSTF declaration.
authorMike Pall <mike>
Thu, 27 Nov 2025 19:04:42 +0000 (20:04 +0100)
committerMike Pall <mike>
Thu, 27 Nov 2025 19:04:42 +0000 (20:04 +0100)
Reading MS docs is hard. #1412

src/lj_def.h

index 25e827c4f1d2b7d855e1833bda73866bfab65fbc..77852912e501fc955818a0c47dec7c0894edb808 100644 (file)
@@ -246,12 +246,7 @@ static LJ_AINLINE uint32_t lj_getu32(const void *p)
 #define LJ_INLINE      __inline
 #define LJ_AINLINE     __forceinline
 #define LJ_NOINLINE    __declspec(noinline)
-#if MSVC_BROKEN
-/* Unclear why this doesn't work, see #1412. */
-#define LJ_CONSTF      __declspec(nothrow noalias)
-#else
-#define LJ_CONSTF
-#endif
+#define LJ_CONSTF      __declspec(noalias)
 #if defined(_M_IX86)
 #define LJ_FASTCALL    __fastcall
 #endif