File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Pkg.generate("MyApp")
2525In 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
3131end
@@ -121,11 +121,10 @@ function using the `executables` keyword argument to `create_app`. As an
121121example, if you want to have two executables called ` A ` and ` B ` calling the
122122julia 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 ...
130129end
131130```
You can’t perform that action at this time.
0 commit comments