Document that cfunctions should not throw errors (#43100)
* Document that cfunctions should not throw errors
This was not documented, see https://discourse.julialang.org/t/what-happens-when-you-throw-an-error-from-a-cfunction/71510?u=simonbyrne
* Update doc/src/manual/calling-c-and-fortran-code.md
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
(cherry picked from commit 0722f3c5c39fb7f213196807c9659d5c819dee32)