Ignore:
Timestamp:
Apr 17, 2011, 10:28:44 AM (10 years ago)
Author:
Sam Hocevar
Message:

lisp: implement LispList::GetLength?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/macs.h

    r481 r490  
    2525#endif
    2626
    27 
    28 #ifndef min
    29 #define min(x,y) (x<y ? x:y)
    30 #endif
    31 #ifndef max
    32 #define max(x,y) (x>y ? x:y)
    33 #endif
    34 
    35 //#define uchar  unsigned char
    36 //#define schar  signed char
    37 //#define ushort unsigned short
    38 //typedef unsigned short int ushort;
    39 //#define sshort signed short
    40 //#define ulong  unsigned long
    41 //typedef unsigned long int ulong;
     27static inline int Min(int a, int b) { return a < b ? a : b; }
     28static inline int Max(int a, int b) { return a > b ? a : b; }
     29static inline float Min(float a, float b) { return a < b ? a : b; }
     30static inline float Max(float a, float b) { return a > b ? a : b; }
    4231
    4332#endif
Note: See TracChangeset for help on using the changeset viewer.