aushape icon indicating copy to clipboard operation
aushape copied to clipboard

Decide on and implement consistent argument verification convention

Open spbnick opened this issue 8 years ago • 1 comments

Some of the functions use assertions, some return AUSHAPE_RC_INVALID_ARGS, some assert that and other return values.

Decide on the rules and implement them.

spbnick avatar Nov 11 '16 16:11 spbnick

So far it seems that it is best to return AUSHAPE_RC_INVALID_ARGS for outside-facing functions only, and do assertions in the rest.

spbnick avatar Dec 01 '16 13:12 spbnick