mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-04 13:23:26 +01:00
26 lines
618 B
C
26 lines
618 B
C
|
//
|
||
|
// Base.h
|
||
|
// cpp_tests
|
||
|
//
|
||
|
// Created by Jief on 12/10/2020.
|
||
|
// Copyright © 2020 JF Knudsen. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#ifndef Base_h
|
||
|
#define Base_h
|
||
|
|
||
|
#include <Library/ProcessorBind.h>
|
||
|
|
||
|
typedef __builtin_va_list VA_LIST;
|
||
|
|
||
|
#define VA_START(Marker, Parameter) __builtin_va_start (Marker, Parameter)
|
||
|
|
||
|
#define VA_ARG(Marker, TYPE) ((sizeof (TYPE) < sizeof (UINTN)) ? (TYPE)(__builtin_va_arg (Marker, UINTN)) : (TYPE)(__builtin_va_arg (Marker, TYPE)))
|
||
|
|
||
|
#define VA_END(Marker) __builtin_va_end (Marker)
|
||
|
|
||
|
#define VA_COPY(Dest, Start) __builtin_va_copy (Dest, Start)
|
||
|
|
||
|
|
||
|
#endif /* Base_h */
|