Skip to content

Commit 07c9d51

Browse files
committed
Adjust for ccall API change
Introduced in JuliaLang/julia#59165
1 parent ece5014 commit 07c9d51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/functions.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,10 @@ end
242242
# Julia version
243243
half_julia(d::Float64) = d*0.5
244244

245+
const libfunctions = CxxWrap.CxxWrapCore.libfunctions()
246+
245247
# C version
246-
half_c(d::Float64) = ccall((:half_c, CxxWrap.CxxWrapCore.libfunctions()), Cdouble, (Cdouble,), d)
248+
half_c(d::Float64) = ccall((:half_c, libfunctions), Cdouble, (Cdouble,), d)
247249

248250
# Bring C++ versions into scope
249251
using .CppHalfFunctions: half_d, half_lambda, half_loop_cpp!, half_loop_jlcall!, half_loop_cfunc!

0 commit comments

Comments
 (0)