Skip to content

Commit

Permalink
Merge pull request #79 from krrutkow/master
Browse files Browse the repository at this point in the history
Fix bindings to global variables
  • Loading branch information
krrutkow authored Jul 22, 2021
2 parents b53abfe + 4b85f49 commit a71e325
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "CBinding"
uuid = "d43a6710-96b8-4a2d-833c-c424785e5374"
authors = ["Keith Rutkowski <[email protected]>"]
version = "1.0.5"
version = "1.0.6"

[deps]
Clang_jll = "0ee61d77-7f21-5576-8119-9fcc46b10100"
Expand Down
2 changes: 1 addition & 1 deletion src/context_c.jl
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ function getexprs_binding(ctx::Context{:c}, cursor::CXCursor)
if cursor.kind == CXCursor_VarDecl
lib = getlib(ctx, name)
append!(exprs, getexprs(ctx, ((sym, jlsym, docs),),
:(struct $(binding){$(getjl(ctx, :name))} <: Cbinding{$(gettype(ctx, type)), $(QuoteNode(Symbol(lib))), $(QuoteNode(Symbol(name)))} end),
:(struct $(binding){$(getjl(ctx, :name))} <: Cbinding{$(gettype(ctx, type)), $(lib), $(QuoteNode(Symbol(name)))} end),
:(const $(sym) = $(binding){$(QuoteNode(Symbol(name)))}()),
))
else
Expand Down

2 comments on commit a71e325

@krrutkow
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/41341

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.6 -m "<description of version>" a71e325ff524415a4a20c0d6c1a91c2d8d618389
git push origin v1.0.6

Please sign in to comment.