Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/src/manual/calling-c-and-fortran-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ Julia function. The arguments to [`@cfunction`](@ref) are:
function on 32-bit Windows, but can be used on WIN64 (where `stdcall` is unified with the
C calling convention).

!!! note
Callback functions exposed via `@cfunction` should not throw errors, as that will
return control to the Julia runtime unexpectedly and may leave the program in an undefined state.

A classic example is the standard C library `qsort` function, declared as:

```c
Expand Down