mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-05 23:16:59 +00:00
Add the brackets for Macro parameter to avoid the unintentional mistakes. A simple example that may cause mistakes: #define minus(x) -x When the following call is made, z = minus(a-b) it becomes: z = -a-b; where "-a - b" is equivalent to "(-a) - b" rather than "- (a - b)", as expected. v2 -> v3: * convert DMAR_WAIT_COMPLETION to inline function * remove the macro PIC_PIN_FOREACH and implement the well-formed for loop in each case * replace __CPP_STRING with STRINGIFY and remove the unused CPP_STRING v1 -> v2: * Remove some changes to function like macro since MISRA-C requires to use inline functions if it is possible. These MACRO brackets violations will be fixed together when fixing other issues related to function like macro. Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
16 lines
261 B
C
16 lines
261 B
C
/*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef STDARG_H
|
|
#define STDARG_H
|
|
|
|
#include <types.h>
|
|
|
|
#define va_start __builtin_va_start
|
|
#define va_end __builtin_va_end
|
|
|
|
#endif /* STDARG_H */
|