Procházet zdrojové kódy

Fixed documentation for aligned structure members

Sam Lantinga před 1 dnem
rodič
revize
970234d62d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      include/SDL3/SDL_begin_code.h

+ 1 - 1
include/SDL3/SDL_begin_code.h

@@ -298,7 +298,7 @@
  * // make sure this one field in a struct is aligned to 16 bytes for SIMD access.
  * typedef struct {
  *    SomeStuff stuff;
- *    float position[4] SDL_ALIGNED(16);
+ *    float SDL_ALIGNED(16) position[4];
  *    SomeOtherStuff other_stuff;
  * } MyStruct;
  *