Ignore:
Timestamp:
Nov 13, 2005, 12:35:02 PM (20 years ago)
Author:
bird
Message:

added a MIX return macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/InnoTekLIBC/logstrict.h

    r2435 r2436  
    189189/** Macro to log a pointer return user error and do the return. */
    190190#define LIBCLOG_ERROR_RETURN_P(rc)            LIBCLOG_ERROR_RETURN_MSG((rc), "ret %p\n", (void*)(rc))
     191
     192/** Macro to log an typical int return which is an error if negative and otherwise a success. */
     193#define LIBCLOG_MIX_RETURN_INT(rc)            do { if (rc < 0) LIBCLOG_ERROR_RETURN_INT(rc); LIBCLOG_RETURN_INT(rc); } while (0)
     194
     195/** Macro to log an typical int return which is an error if not zero and otherwise a success. */
     196#define LIBCLOG_MIX0_RETURN_INT(rc)           do { if (rc) LIBCLOG_ERROR_RETURN_INT(rc); LIBCLOG_RETURN_INT(rc); } while (0)
    191197
    192198
Note: See TracChangeset for help on using the changeset viewer.