int error = hw_RegisterError(STRPTR msg);
%s
or %ld
wildcard. If that is the case, Hollywood will
replace these wildcards with the values set using hw_SetErrorString()
and hw_SetErrorCode().
Hollywood will make a copy of the string you pass to this function so you may free
it once hw_RegisterError()
returns.
This function should only be called in your InitPlugin() function.
See Error codes for more information on standard Hollywood error codes.
ERR_MEM
in case of an error