Skip to content

Commit

Permalink
Merge pull request #5 from status-im/eh
Browse files Browse the repository at this point in the history
Fix eh specifiers
  • Loading branch information
arnetheduck committed Feb 27, 2024
2 parents a1724ba + 7a7ad6c commit aa05fe4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion keycard_go/impl.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
type KeycardSignalCallback* = proc(signal: cstring): void {.cdecl.}
# go functions do not raise nim exceptions and do not interact with the Nim gc
{.push raises: [], gcsafe.}

type KeycardSignalCallback* = proc(signal: cstring): void {.cdecl, gcsafe, raises: [].}

proc free*(param: pointer) {.importc: "Free".}
proc setSignalEventCallback*(callback: KeycardSignalCallback) {.importc: "KeycardSetSignalEventCallback".}
Expand Down

0 comments on commit aa05fe4

Please sign in to comment.