Add ffi.abi("dualnum").

Thanks to Sergey Kaplun. #1442
This commit is contained in:
Mike Pall
2026-02-27 00:33:30 +01:00
parent fc3d17eb40
commit a553b3de24
2 changed files with 5 additions and 0 deletions

View File

@@ -468,6 +468,8 @@ otherwise. The following parameters are currently defined:
<td class="abiparam">uwp</td><td class="abidesc">Universal Windows Platform</td></tr>
<tr class="even">
<td class="abiparam">gc64</td><td class="abidesc">64 bit GC references</td></tr>
<tr class="odd">
<td class="abiparam">dualnum</td><td class="abidesc">Dual-number mode</td></tr>
</table>
<h3 id="ffi_os"><tt>ffi.os</tt></h3>

View File

@@ -758,6 +758,9 @@ LJLIB_CF(ffi_abi) LJLIB_REC(.)
#endif
#if LJ_GC64
"\004gc64"
#endif
#if LJ_DUALNUM
"\007dualnum"
#endif
) >= 0;
setboolV(L->top-1, b);