Add undocumented pragma which workarounds Nim compiler's issue with C code generation.

This commit is contained in:
cheatfate 2024-06-12 20:08:41 +03:00
parent d7511cd728
commit 9b5898f232
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
1 changed files with 3 additions and 3 deletions

View File

@ -58,19 +58,19 @@ type
# A basic blob data. # A basic blob data.
KzgBlob* {.importc: "Blob", KzgBlob* {.importc: "Blob",
header: "c_kzg_4844.h".} = object header: "c_kzg_4844.h", completeStruct.} = object
bytes*: array[KzgBlobSize, uint8] bytes*: array[KzgBlobSize, uint8]
# An array of 48 bytes. Represents an untrusted # An array of 48 bytes. Represents an untrusted
# (potentially invalid) commitment/proof. # (potentially invalid) commitment/proof.
KzgBytes48* {.importc: "Bytes48", KzgBytes48* {.importc: "Bytes48",
header: "c_kzg_4844.h".} = object header: "c_kzg_4844.h", completeStruct.} = object
bytes*: array[48, uint8] bytes*: array[48, uint8]
# An array of 32 bytes. Represents an untrusted # An array of 32 bytes. Represents an untrusted
# (potentially invalid) field element. # (potentially invalid) field element.
KzgBytes32* {.importc: "Bytes32", KzgBytes32* {.importc: "Bytes32",
header: "c_kzg_4844.h".} = object header: "c_kzg_4844.h", completeStruct.} = object
bytes*: array[32, uint8] bytes*: array[32, uint8]
# A trusted (valid) KZG commitment. # A trusted (valid) KZG commitment.