Skip to content

Commit 0bcadb4

Browse files
authored
remove old docs for ccall in app entry points
1 parent dea8bc7 commit 0bcadb4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/src/apps.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Pkg.generate("MyApp")
2525
In the code for the package, there should be a function with the signature
2626

2727
```julia
28-
Base.@ccallable function julia_main()::Cint
28+
function julia_main()::Cint
2929
# do something based on ARGS?
3030
return 0 # if things finished successfully
3131
end
@@ -121,11 +121,10 @@ function using the `executables` keyword argument to `create_app`. As an
121121
example, if you want to have two executables called `A` and `B` calling the
122122
julia functions `main_A` and `main_B`, respectively, you would pass
123123
`executables= ["A" => "main_A", "B" => "main_B"]`. Note that `main_A` and `main_B`
124-
both need to be annotated with `Base.@ccallable`, not take any arguments and be
125-
annotated to return a `Cint`, for example:
124+
both need to not take any arguments and be annotated to return a `Cint`, for example:
126125

127126
```jl
128-
Base.@ccallable function main_A()::Cint
127+
function main_A()::Cint
129128
...
130129
end
131130
```

0 commit comments

Comments
 (0)