Subversion Repositories HelenOS

Rev

Rev 2927 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2927 Rev 3149
Line 50... Line 50...
50
#define va_start(ap, lst)       \
50
#define va_start(ap, lst)       \
51
    (ap).pos = sizeof(lst);             \
51
    (ap).pos = sizeof(lst);             \
52
    (ap).last = (uint8_t *) &(lst)
52
    (ap).last = (uint8_t *) &(lst)
53
 
53
 
54
#define va_arg(ap, type)        \
54
#define va_arg(ap, type)        \
55
    (*((type *)((ap).last + ((ap).pos  += sizeof(type) ) - sizeof(type))))
55
    (*((type *)((ap).last + ((ap).pos += sizeof(type)) - sizeof(type))))
56
 
56
 
57
#define va_copy(dst,src)       dst=src
57
#define va_copy(dst, src) dst = src
58
#define va_end(ap)
58
#define va_end(ap)
59
 
59
 
60
 
60
 
61
#endif
61
#endif
62
 
62