2
0
Эх сурвалжийг харах

REVIEWED: Libs include order

Ray 1 жил өмнө
parent
commit
cfffa74f96
2 өөрчлөгдсөн 5 нэмэгдсэн , 5 устгасан
  1. 4 4
      src/rcore.h
  2. 1 1
      src/utils.h

+ 4 - 4
src/rcore.h

@@ -37,12 +37,12 @@
 
 #include "raylib.h"
 
-#include "rlgl.h"
+#include "utils.h"                  // Required for: TRACELOG() macros
 
-#define RAYMATH_IMPLEMENTATION
-#include "raymath.h"
+#include "rlgl.h"                   // Required for: graphics layer functionality
 
-#include "utils.h"                  // Required for: TRACELOG() macros
+#define RAYMATH_IMPLEMENTATION
+#include "raymath.h"                // Required for: Vector2/Vector3/Matrix functionality
 
 #include <stdlib.h>                 // Required for: srand(), rand(), atexit()
 #include <stdio.h>                  // Required for: sprintf() [Used in OpenURL()]

+ 1 - 1
src/utils.h

@@ -32,7 +32,7 @@
     #include <android/asset_manager.h>      // Required for: AAssetManager
 #endif
 
-#if defined(SUPPORT_TRACELOG) && !defined(TRACELOG)
+#if defined(SUPPORT_TRACELOG)
     #define TRACELOG(level, ...) TraceLog(level, __VA_ARGS__)
 
     #if defined(SUPPORT_TRACELOG_DEBUG)