We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6302046 commit c384809Copy full SHA for c384809
doc/src/manual/calling-c-and-fortran-code.md
@@ -186,6 +186,10 @@ Julia function. The arguments to [`@cfunction`](@ref) are:
186
function on 32-bit Windows, but can be used on WIN64 (where `stdcall` is unified with the
187
C calling convention).
188
189
+!!! note
190
+ Callback functions exposed via `@cfunction` should not throw errors, as that will
191
+ return control to the Julia runtime unexpectedly and may leave the program in an undefined state.
192
+
193
A classic example is the standard C library `qsort` function, declared as:
194
195
```c
0 commit comments