fix type declaration for nim devel

This commit is contained in:
jangko 2023-06-23 08:42:55 +07:00
parent aa99cb0d75
commit 867677b239
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
2 changed files with 3 additions and 2 deletions

1
tests/config.nims Normal file
View File

@ -0,0 +1 @@
switch("warning", "BareExcept:off")

View File

@ -11,10 +11,10 @@ when defined(windows):
const TTMATH_HEADER = ttmathPath & DirSep & "headers" & DirSep & "ttmath.h"
type
UInt* {.importcpp: "ttmath::UInt<'0 / 8 / sizeof(ttmath::uint)>", header: TTMATH_HEADER.} [NumBits: static[int]] = object
UInt*[NumBits: static[int]] {.importcpp: "ttmath::UInt<'0 / 8 / sizeof(ttmath::uint)>", header: TTMATH_HEADER.} = object
table*: array[NumBits div 8 div sizeof(uint), uint] # TODO: This should likely be private, but it's used in nimbus...
Int* {.importcpp: "ttmath::Int<'0 / 8 / sizeof(ttmath::uint)>", header: TTMATH_HEADER.} [NumBits: static[int]] = object
Int*[NumBits: static[int]] {.importcpp: "ttmath::Int<'0 / 8 / sizeof(ttmath::uint)>", header: TTMATH_HEADER.} = object
Int256* = Int[256]
Int512* = Int[512]