You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A more julian syntax for ccall: the @ ccall macro (JuliaLang#32748)
Here we implement a syntax for ccall with Julia-like type annotations on the arguments.
Compared to ccall:
* The new syntax is more familiar to Julia programmers
* The new syntax gives a notation for calling C varargs functions
* Support for specifying calling convention is not yet implemented as that will require another syntax discussion
* The semantics for interpolating "function like things" is much simplified (only function pointers are allowed)
Copy file name to clipboardexpand all lines: NEWS.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ Build system changes
46
46
47
47
New library functions
48
48
---------------------
49
-
49
+
* The `@ccall` macro has been added added to Base. It is a near drop-in replacement for `ccall` with more Julia-like syntax. It also wraps the new `foreigncall` API for varargs of different types, though it lacks the the capability to specify an LLVM calling convention. ([#32748])
50
50
* New functions `mergewith` and `mergewith!` supersede `merge` and `merge!` with `combine`
51
51
argument. They don't have the restriction for `combine` to be a `Function` and also
52
52
provide one-argument method that returns a closure. The old methods of `merge` and
0 commit comments