samdmarshall/libclang-nim

Cdecl required for callback procedure

Closed this issue · 1 comments

While using these bindings I couldn't get findIncludesInFiles to work, I just received a CXResult_Invalid. Turns out the procedure in the CXCursorAndRangeVisitor objects needs to be declared as a {.cdecl.}. This would likely apply to all such callbacks.

Had similar issues with CXCursorVisitor.