You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Tears down the FFI context created by my_timer_create.
141
-
## Blocks until the FFI thread and watchdog thread have joined.
116
+
## Tears down the FFI context; blocks until FFI + watchdog threads join.
142
117
discard
143
118
144
-
# genBindings() must be the LAST top-level call in the FFI root file —
145
-
# after every {.ffi.}, {.ffiCtor.} and {.ffiDtor.} pragma. Each pragma
146
-
# fires at compile time and registers its proc into the compile-time
147
-
# ffiProcRegistry / ffiTypeRegistry; genBindings() then reads those
148
-
# registries to emit the language bindings. If genBindings() runs before
149
-
# a pragma, that proc is silently absent from the generated bindings.
150
-
#
151
-
# Multi-file libraries: keep all .ffi./.ffiCtor./.ffiDtor. pragmas in
152
-
# imported sub-modules and call genBindings() once at the bottom of the
153
-
# top-level file that imports them — Nim resolves imports before the
154
-
# importing file's body runs, so the registries are fully populated by
155
-
# the time genBindings() executes.
156
-
#
157
-
# genBindings() is a compile-time no-op unless -d:ffiGenBindings is set.
119
+
# genBindings() must be the LAST top-level call, after every pragma has registered its proc; it reads those registries to emit bindings (no-op unless -d:ffiGenBindings).
0 commit comments