[sane-devel] [SANE2 proposal] Error handling
Sat, 29 Nov 2003 18:51:14 +0100
Andi McLean <firstname.lastname@example.org> wrote:
> Personally I don't like using macros as they are not type safe, and can
> cause problems when porting to other languages.
> If you want to save memory (4 bytes :) ) then use
> typedef SANE_Status
> short code;
> short backend-code;
> } SANE_Status;
> which is still 32 bits long.
Looks like I'm definitely going for something too complicated.
Julien BLACHE <http://www.jblache.org>