Răsfoiți Sursa

Import core explicit

Kajetan Johannes Hammerle 11 luni în urmă
părinte
comite
3771b865fc

+ 2 - 2
CMakeLists.txt

@@ -56,9 +56,9 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
     set(COMPILE_OPTIONS "")
     set(LINK_OPTIONS "")
     set(LOG_LEVEL 2)
-    set(DEFINITIONS CORE_CHECK_MEMORY IMPORT_CORE)
+    set(DEFINITIONS CORE_CHECK_MEMORY)
 else()
-    set(DEFINITIONS ERROR_SIMULATOR CORE_CHECK_MEMORY IMPORT_CORE)
+    set(DEFINITIONS ERROR_SIMULATOR CORE_CHECK_MEMORY)
     if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
         set(COMPILE_OPTIONS --coverage)
         set(LINK_OPTIONS gcov)

+ 1 - 0
performance/Main.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include <stdio.h>
 
 #include "core/HashMap.h"

+ 1 - 0
src/BitArray.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/BitArray.h"
 
 #include <assert.h>

+ 1 - 0
src/Box.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/Box.h"
 
 #include "core/Generic.h"

+ 1 - 0
src/Buffer.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/Buffer.h"
 
 #include <string.h>

+ 1 - 0
src/Components.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/Components.h"
 
 void initComponents(Components* c, size_t componentSize) {

+ 1 - 0
src/Frustum.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/Frustum.h"
 
 #include <math.h>

+ 1 - 0
src/HashMap.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/HashMap.h"
 
 #include "core/Utility.h"

+ 1 - 0
src/List.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/List.h"
 
 #include <assert.h>

+ 1 - 0
src/Logger.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/Logger.h"
 
 #include <stdarg.h>

+ 1 - 0
src/Matrix.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include <math.h>
 #include <stdio.h>
 

+ 1 - 0
src/Plane.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/Plane.h"
 
 #include "core/Generic.h"

+ 1 - 0
src/Quaternion.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include <math.h>
 
 #include "core/Generic.h"

+ 1 - 0
src/Queue.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/Queue.h"
 
 #include <assert.h>

+ 1 - 0
src/Random.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/Random.h"
 
 static const size_t M = 7;

+ 1 - 0
src/ReadLine.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/ReadLine.h"
 
 #include <ctype.h>

+ 1 - 0
src/SpinLock.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/SpinLock.h"
 
 #include <threads.h>

+ 1 - 0
src/Test.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/Test.h"
 
 #include <stdio.h>

+ 1 - 0
src/ToString.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/ToString.h"
 
 #include <stdarg.h>

+ 1 - 0
src/Utility.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/Utility.h"
 
 #include <stdlib.h>

+ 1 - 0
src/Vector.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/Vector.h"
 
 #include <math.h>

+ 1 - 0
src/View.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "core/View.h"
 
 #include "core/Generic.h"

+ 1 - 0
test/Main.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include <locale.h>
 #include <stdio.h>
 #include <string.h>

+ 1 - 0
test/modules/BitArrayTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "../Tests.h"
 #include "core/BitArray.h"
 #include "core/ToString.h"

+ 1 - 0
test/modules/BoxTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "../Tests.h"
 #include "core/Box.h"
 #include "core/ToString.h"

+ 1 - 0
test/modules/BufferTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "../Tests.h"
 #include "core/Buffer.h"
 

+ 1 - 0
test/modules/ComponentsTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "../Tests.h"
 #include "core/Components.h"
 

+ 1 - 0
test/modules/FrustumTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "../Tests.h"
 #include "core/Frustum.h"
 #include "core/ToString.h"

+ 1 - 0
test/modules/HashMapTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "../Tests.h"
 #include "core/HashMap.h"
 #include "core/ToString.h"

+ 1 - 0
test/modules/ListTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "../Tests.h"
 #include "core/List.h"
 #include "core/ToString.h"

+ 1 - 0
test/modules/MatrixTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "../Tests.h"
 #include "core/Generic.h"
 #include "core/ToString.h"

+ 1 - 0
test/modules/PlaneTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "../Tests.h"
 #include "core/Plane.h"
 #include "core/ToString.h"

+ 1 - 0
test/modules/QuaternionTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "../Tests.h"
 #include "core/Generic.h"
 

+ 1 - 0
test/modules/QueueTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "../Tests.h"
 #include "core/Queue.h"
 #include "core/ToString.h"

+ 1 - 0
test/modules/RandomTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "../Tests.h"
 #include "core/Random.h"
 

+ 1 - 0
test/modules/ReadLineTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include <stdio.h>
 #include <threads.h>
 

+ 1 - 0
test/modules/SpinLockTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include <stdio.h>
 #include <threads.h>
 

+ 1 - 0
test/modules/TestTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "../Tests.h"
 #include "core/Vector.h"
 

+ 1 - 0
test/modules/UtilityTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "../../src/ErrorSimulator.h"
 #include "../Tests.h"
 #include "core/Utility.h"

+ 1 - 0
test/modules/VectorTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include <math.h>
 
 #include "../Tests.h"

+ 1 - 0
test/modules/ViewTests.c

@@ -1,3 +1,4 @@
+#define IMPORT_CORE
 #include "../Tests.h"
 #include "core/ToString.h"
 #include "core/View.h"