Skip to content

Commit 3a2a4d8

Browse files
authored
Update calling-c-and-fortran-code.md: fix ccall parameters (not a tuple) (#55665)
1 parent ae050a6 commit 3a2a4d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/manual/calling-c-and-fortran-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ A table of translations between the macro and function interfaces is given below
996996
|------------------------------------------------------------------------------|-----------------------------------------------------------------------------|
997997
| `@ccall clock()::Int32` | `ccall(:clock, Int32, ())` |
998998
| `@ccall f(a::Cint)::Cint` | `ccall(:a, Cint, (Cint,), a)` |
999-
| `@ccall "mylib".f(a::Cint, b::Cdouble)::Cvoid` | `ccall((:f, "mylib"), Cvoid, (Cint, Cdouble), (a, b))` |
999+
| `@ccall "mylib".f(a::Cint, b::Cdouble)::Cvoid` | `ccall((:f, "mylib"), Cvoid, (Cint, Cdouble), a, b)` |
10001000
| `@ccall $fptr.f()::Cvoid` | `ccall(fptr, f, Cvoid, ())` |
10011001
| `@ccall printf("%s = %d\n"::Cstring ; "foo"::Cstring, foo::Cint)::Cint` | `<unavailable>` |
10021002
| `@ccall printf("%s = %s\n"::Cstring ; "2 + 2"::Cstring, "5"::Cstring)::Cint` | `ccall(:printf, Cint, (Cstring, Cstring...), "%s = %s\n", "2 + 2", "5")` |

0 commit comments

Comments
 (0)