Skip to content

Commit

Permalink
Update calling-c-and-fortran-code.md: fix ccall parameters (not a tup…
Browse files Browse the repository at this point in the history
…le) (#55665)
  • Loading branch information
gvanuxem authored Sep 2, 2024
1 parent ae050a6 commit 3a2a4d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/src/manual/calling-c-and-fortran-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ A table of translations between the macro and function interfaces is given below
|------------------------------------------------------------------------------|-----------------------------------------------------------------------------|
| `@ccall clock()::Int32` | `ccall(:clock, Int32, ())` |
| `@ccall f(a::Cint)::Cint` | `ccall(:a, Cint, (Cint,), a)` |
| `@ccall "mylib".f(a::Cint, b::Cdouble)::Cvoid` | `ccall((:f, "mylib"), Cvoid, (Cint, Cdouble), (a, b))` |
| `@ccall "mylib".f(a::Cint, b::Cdouble)::Cvoid` | `ccall((:f, "mylib"), Cvoid, (Cint, Cdouble), a, b)` |
| `@ccall $fptr.f()::Cvoid` | `ccall(fptr, f, Cvoid, ())` |
| `@ccall printf("%s = %d\n"::Cstring ; "foo"::Cstring, foo::Cint)::Cint` | `<unavailable>` |
| `@ccall printf("%s = %s\n"::Cstring ; "2 + 2"::Cstring, "5"::Cstring)::Cint` | `ccall(:printf, Cint, (Cstring, Cstring...), "%s = %s\n", "2 + 2", "5")` |
Expand Down

0 comments on commit 3a2a4d8

Please sign in to comment.