Functions that fail should always return HRESULT #4

Open
opened 2019-09-28 00:14:10 +03:00 by icex2 · 0 comments
icex2 commented 2019-09-28 00:14:10 +03:00 (Migrated from github.com)

and not bool or int. Return values should be passed to the caller via argument pointers.

This "style" is already applied in a few places, e.g. p3io, and seems to be a good way to go. This also allows simpler cascading of errors especially in the context of hooked code.

Proposed by @tau

and not bool or int. Return values should be passed to the caller via argument pointers. This "style" is already applied in a few places, e.g. p3io, and seems to be a good way to go. This also allows simpler cascading of errors especially in the context of hooked code. Proposed by @tau
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Max/djhackersdev_bemanitools#4