We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49e5a32 commit ec95fa5Copy full SHA for ec95fa5
src/utils.jl
@@ -231,17 +231,21 @@ end
231
macro cplprogress(progressfunc)
232
@static if Sys.ARCH == :aarch64
233
@warn "User provided progress functions are unsupported on this architecture."
234
- return @cfunction(
235
- GDAL.gdaldummyprogress,
236
- Cint,
237
- (Cdouble, Cstring, Ptr{Cvoid})
238
- )
+ quote
+ @cfunction(
+ $(Expr(:$, esc(GDAL.gdaldummyprogress))),
+ Cint,
+ (Cdouble, Cstring, Ptr{Cvoid})
239
+ )
240
+ end
241
else
- $(esc(progressfunc)),
242
243
244
+ $(Expr(:$, esc(progressfunc))),
245
246
247
248
249
end
250
251
0 commit comments