Global: addresses AI's comments

This commit is contained in:
Carter Li
2026-04-21 18:14:57 +08:00
committed by 李通洲
parent 1314c18a52
commit dbb060eb62
5 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ static inline void ffListReserve(FFlist* list, uint32_t elementSize, uint32_t ne
({ \
typedef __typeof__(*(pCompElement)) compElementType; \
typedef bool compFuncType(const compElementType*, const compElementType*); \
static_assert(__builtin_types_compatible_p(__typeof__(compFunc), compFuncType), "In compatible callback function"); \
static_assert(__builtin_types_compatible_p(__typeof__(compFunc), compFuncType), "Incompatible callback function"); \
ffListContains(&(listVar), (uint32_t) sizeof(*(pCompElement)), (pCompElement), (bool (*)(const void*, const void*)) compFunc); \
})
+2 -1
View File
@@ -1,6 +1,7 @@
#pragma once
#ifdef _MSC_VER
#ifndef __has_attribute
#error Unsupported compiler
#define __attribute__(x)
#endif
+1 -1
View File
@@ -13,7 +13,7 @@ const char* ffDebugWin32Error(DWORD errorCode) {
(DWORD) errorCode,
0,
bufferW,
sizeof(buffer),
ARRAY_SIZE(bufferW),
NULL);
if (len == 0) {