Ignore:
Timestamp:
Aug 25, 2007, 5:46:14 AM (18 years ago)
Author:
bird
Message:

errors and stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kStuff/include/k/kDefs.h

    r3538 r3541  
    371371#define K_ALIGN_P(pv, align)    ( (void *)( ((KUPTR)(pv) + ((align) - 1)) & ~(KUPTR)((align) - 1) ) )
    372372/** Number of elements in an array. */
    373 #define K_ELEMENTS(a)           ( sizeof(a) / sizeof((a)[
     373#define K_ELEMENTS(a)           ( sizeof(a) / sizeof((a)[0]) )
    374374/** Checks if the specified pointer is a valid address or not. */
    375375#define K_VALID_PTR(ptr)        ( (KUPTR)(ptr) + 0x1000U >= 0x2000U )
Note: See TracChangeset for help on using the changeset viewer.