소스 검색

Sync SDL3 wiki -> header

SDL Wiki Bot 1 년 전
부모
커밋
230161a50c
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      include/SDL3/SDL_stdinc.h

+ 3 - 2
include/SDL3/SDL_stdinc.h

@@ -91,8 +91,9 @@ void *alloca(size_t);
 /**
 /**
  * The number of elements in an array.
  * The number of elements in an array.
  *
  *
- * NOTE: This macro double-evaluates the argument, so you should never have
- * side effects in the parameter.
+ * This macro looks like it double-evaluates the argument, but it does so
+ * inside of `sizeof`, so there are no side-effects here, as expressions do
+ * not actually run any code in these cases.
  *
  *
  * \since This macro is available since SDL 3.0.0.
  * \since This macro is available since SDL 3.0.0.
  */
  */