From 7a0c04dea5a85ba9ed04e28f70b187d7d401b917 Mon Sep 17 00:00:00 2001 From: Ivan FB Date: Tue, 12 May 2026 03:07:13 +0200 Subject: [PATCH] fix nph --- examples/nim_timer/nim_timer.nim | 3 ++- ffi.nim | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/nim_timer/nim_timer.nim b/examples/nim_timer/nim_timer.nim index 947e749..10133e6 100644 --- a/examples/nim_timer/nim_timer.nim +++ b/examples/nim_timer/nim_timer.nim @@ -72,7 +72,8 @@ proc nimtimerComplex*( # In a multi-file library, import all sub-modules first and call genBindings() # once, at the bottom of the top-level compilation-root file. # This call is a no-op unless -d:ffiGenBindings is passed to the compiler. -genBindings() # reads -d:ffiOutputDir, -d:ffiNimSrcRelPath, -d:targetLang from compile flags +genBindings() + # reads -d:ffiOutputDir, -d:ffiNimSrcRelPath, -d:targetLang from compile flags proc nimtimer_destroy*(ctx: pointer) {.dynlib, exportc, cdecl, raises: [].} = ## Tears down the FFI context created by nimtimer_create. diff --git a/ffi.nim b/ffi.nim index a47ac2f..0b98793 100644 --- a/ffi.nim +++ b/ffi.nim @@ -7,5 +7,5 @@ import export atomics, tables export chronos, chronicles export - atomics, alloc, ffi_library, ffi_macro, ffi_types, ffi_context, - ffi_thread_request, serial + atomics, alloc, ffi_library, ffi_macro, ffi_types, ffi_context, ffi_thread_request, + serial