Changeset adddd75 in mainline


Ignore:
Timestamp:
2011-04-21T19:25:54Z (14 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cfac897
Parents:
bfbe16f
Message:

Add a macro to catch and handle errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/minixfs/mfs.h

    rbfbe16f radddd75  
    5959#endif
    6060
     61#define on_error(r, inst) do {  \
     62                                if (r != EOK) inst;     \
     63                        }while(0)
     64
    6165GLOBAL fs_reg_t mfs_reg;
    6266
Note: See TracChangeset for help on using the changeset viewer.