Edit format document

This commit is contained in:
intns 2021-10-14 20:57:34 +01:00
parent e6938f6330
commit 5811bc0d0f
3 changed files with 8 additions and 3 deletions

View File

@ -10,3 +10,8 @@ TabWidth: 4
UseTab: ForIndentation
SortIncludes: false
AlignConsecutiveMacros: true
AlignEscapedNewlines: Left
AlignOperands: true
AllowShortIfStatementsOnASingleLine: Never
Cpp11BracedListStyle: false
Language: Cpp

View File

@ -20,7 +20,7 @@ void* __va_arg(va_list, int);
#define va_start(ARG, VA_LIST) ((void)ARG, __builtin_va_info(&VA_LIST))
#define va_end(VA_LIST) ((void)VA_LIST)
#define va_arg(VA_LIST, ARG_TYPE) \
#define va_arg(VA_LIST, ARG_TYPE) \
(*(ARG_TYPE*)) __va_arg(VA_LIST, _var_arg_typeof(ARG_TYPE))
int printf(const char*, ...);

View File

@ -12,8 +12,8 @@ struct JUTException {
static OSMessageQueue sMessageQueue;
};
#define JUT_ASSERT(cond, string_ref) \
if (!(cond)) \
#define JUT_ASSERT(cond, string_ref) \
if (!(cond)) \
JUTException::panic_f(__FILE__, __LINE__, string_ref)
#define P2ASSERT_BROKEN(cond) JUT_ASSERT(cond, nullptr)