2.7 Error codes

Many functions require you to return a Hollywood error code to indicate success or failure. All standard error codes are defined in hollywood/errors.h but you can also register custom error codes using To indicate success, you have to return 0 which is equivalent to the constant ERR_NONE.

A special error code is ERR_USERABORT. If you return this error code, Hollywood will immediately shut down and quit without showing any error message.


Show TOC