-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
documentationMissing, incorrect, or unclear. Spelling & grammar mistakes.Missing, incorrect, or unclear. Spelling & grammar mistakes.enhancementNew user-visible features or improvements to existing features.New user-visible features or improvements to existing features.
Milestone
Description
To report errors correctly when writing runtime code, you must be pretty familiar with some internals that aren't obvious enough to a newcomer to the code; we should do something to make this more obvious. The current situation:
- halide_assert() should be used only for unrecoverable failures; it always calls halide_abort().
- error() should be used for potentially recoverable errors
- Since it calls halide_error(), which may-or-may-not-return depending on the client, calls to error() in the runtime must also return an error code; this is an easy thing to omit. Is there a way we can enforce this syntactically?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationMissing, incorrect, or unclear. Spelling & grammar mistakes.Missing, incorrect, or unclear. Spelling & grammar mistakes.enhancementNew user-visible features or improvements to existing features.New user-visible features or improvements to existing features.