Skip to content

Commit

Permalink
fixup! Generate bindings for zmq.h using Clang.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed Jul 15, 2024
1 parent 806f74c commit cd4473b
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 81 deletions.
4 changes: 2 additions & 2 deletions gen/gen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ function get_msg_methods(ctx, module_name)
# Replace occurrences of `arg::Ptr{zmq_msg_t}` with
# `arg::Ref{Message}`.
new_body = postwalk(body) do x
if @capture(x, arg_name_::T_) && T == :(Ptr{zmq_msg_t})
:($arg_name::Ref{Message})
if @capture(x, Ptr{T_}) && T == :(zmq_msg_t)
:(Ref{Message})
else
x
end
Expand Down
3 changes: 0 additions & 3 deletions gen/generator.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,3 @@ prologue_file_path = "./prologue.jl"
auto_mutability = true
auto_mutability_with_new = false
auto_mutability_includelist = ["zmq_pollitem_t"]

[codegen]
use_ccall_macro = true
Loading

0 comments on commit cd4473b

Please sign in to comment.