Skip to content

Commit

Permalink
avoid printing var syntax on 1.3
Browse files Browse the repository at this point in the history
adds space to `ctx=C_NULL`
  • Loading branch information
visr committed Nov 17, 2019
1 parent 62c3c2c commit 7bc9048
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 68 deletions.
4 changes: 2 additions & 2 deletions gen/wrap_proj.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ https://github.com/JuliaGeo/GDAL.jl/blob/master/gen/README.md for more informati
on how to construct the PROJ Doxygen XML file needed here.
=#

using Clang
using Clang # needs a post 0.9.1 release with #231 and #232
using MacroTools
using EzXML

Expand Down Expand Up @@ -72,7 +72,7 @@ function rewriter(x::Expr)
# ctx is always the first argument
if !isempty(fargs) && fargs[1] === :ctx
fargs2 = circshift(fargs, -1)
fargs2[end] = Symbol("ctx=C_NULL")
fargs2[end] = :(ctx = C_NULL)
ctx = true
else
fargs2 = fargs
Expand Down
Loading

0 comments on commit 7bc9048

Please sign in to comment.