فهرست منبع

Better document that main functionality is in SDL_main.h

Fixes https://github.com/libsdl-org/SDL/issues/12159
Sam Lantinga 1 ماه پیش
والد
کامیت
ad840e8796
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      include/SDL3/SDL_main.h

+ 4 - 1
include/SDL3/SDL_main.h

@@ -28,6 +28,9 @@
  * should look like this:
  *
  * ```c
+ * #include <SDL3/SDL.h>
+ * #include <SDL3/SDL_main.h>
+ *
  * int main(int argc, char *argv[])
  * {
  * }
@@ -38,7 +41,7 @@
  * This is also where an app can be configured to use the main callbacks, via
  * the SDL_MAIN_USE_CALLBACKS macro.
  *
- * This is a "single-header library," which is to say that including this
+ * SDL_main.h is a "single-header library," which is to say that including this
  * header inserts code into your program, and you should only include it once
  * in most cases. SDL.h does not include this header automatically.
  *