Changeset 21941 for trunk/include/odin.h


Ignore:
Timestamp:
Jan 18, 2012, 11:30:59 AM (14 years ago)
Author:
dmik
Message:

Add DEF_VAL macro to define argument's default values.

This is necessary to use functions with default values in C code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/odin.h

    r21916 r21941  
    172172#endif
    173173
     174#ifdef __cplusplus
     175#define DEF_VAL(v) = v
     176#else
     177#define DEF_VAL(v)
     178#endif
     179
    174180#ifdef __GNUC__
    175181// __stdcall in GCC for OS/2 incorrectly mangles vararg functions; according to
Note: See TracChangeset for help on using the changeset viewer.