From 397150e6bc3b7d51c606950121b320369ec3d814 Mon Sep 17 00:00:00 2001 From: Ivan FB Date: Tue, 12 May 2026 22:43:35 +0200 Subject: [PATCH] mv comment to an appropriate location --- examples/nim_timer/nim_timer.nim | 1 - ffi/internal/ffi_macro.nim | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/nim_timer/nim_timer.nim b/examples/nim_timer/nim_timer.nim index 10133e6..bd4f568 100644 --- a/examples/nim_timer/nim_timer.nim +++ b/examples/nim_timer/nim_timer.nim @@ -73,7 +73,6 @@ proc nimtimerComplex*( # 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 proc nimtimer_destroy*(ctx: pointer) {.dynlib, exportc, cdecl, raises: [].} = ## Tears down the FFI context created by nimtimer_create. diff --git a/ffi/internal/ffi_macro.nim b/ffi/internal/ffi_macro.nim index f310983..9fa7449 100644 --- a/ffi/internal/ffi_macro.nim +++ b/ffi/internal/ffi_macro.nim @@ -1635,6 +1635,8 @@ macro genBindings*( ## -d:ffiNimSrcRelPath, or can be passed as explicit arguments. ## This macro is a no-op unless -d:ffiGenBindings is set. ## + ## This reads -d:ffiOutputDir, -d:ffiNimSrcRelPath, -d:targetLang from compile flags. + ## ## Example (all via compile flags): ## genBindings() ## # nim c -d:ffiGenBindings -d:targetLang=rust \