Changeset 5fa506d in buchla-68k for include/stdarg.h


Ignore:
Timestamp:
07/10/2017 09:48:23 AM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
6262b5c
Parents:
f7428b1
Message:

Include file cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/stdarg.h

    rf7428b1 r5fa506d  
    77
    88#pragma once
     9
    910#include "stdint.h"
    1011
    1112typedef int8_t  *va_list;
    1213
    13 #define va_start(ap, last)      ap = (int8_t *)&last + sizeof(last)
    14 #define va_arg(ap, type)        (ap += sizeof(type), ap[-1])
     14#define va_start(ap, last)      (ap = (int8_t *)&last + sizeof last)
     15#define va_arg(ap, type)        (ap += sizeof (type), ((type *)ap)[-1])
    1516#define va_end(ap)
Note: See TracChangeset for help on using the changeset viewer.