Procházet zdrojové kódy

Merge branch 'master' into master

Optimizer0 před 5 roky
rodič
revize
1d3f8bd871
3 změnil soubory, kde provedl 204 přidání a 204 odebrání
  1. 191 194
      include/assimp/cimport.h
  2. 3 3
      include/assimp/importerdesc.h
  3. 10 7
      test/unit/AssimpAPITest.cpp

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 191 - 194
include/assimp/cimport.h


+ 3 - 3
include/assimp/importerdesc.h

@@ -5,8 +5,6 @@ Open Asset Import Library (assimp)
 
 Copyright (c) 2006-2020, assimp team
 
-
-
 All rights reserved.
 
 Redistribution and use of this software in source and binary forms,
@@ -49,9 +47,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #define AI_IMPORTER_DESC_H_INC
 
 #ifdef __GNUC__
-#pragma GCC system_header
+#   pragma GCC system_header
 #endif
 
+#include <assimp/types.h>
+
 /** Mixed set of flags for #aiImporterDesc, indicating some features
   *  common to many importers*/
 enum aiImporterFlags {

+ 10 - 7
test/unit/AssimpAPITest.cpp

@@ -5,8 +5,6 @@ Open Asset Import Library (assimp)
 
 Copyright (c) 2006-2020, assimp team
 
-
-
 All rights reserved.
 
 Redistribution and use of this software in source and binary forms,
@@ -46,14 +44,19 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 using namespace Assimp;
 
 class AssimpAPITest : public ::testing::Test {
-
+    // empty
 };
 
 TEST_F( AssimpAPITest, aiGetImporterDescTest ) {
-    const aiImporterDesc *desc( NULL );
-    desc = aiGetImporterDesc( NULL );
-    EXPECT_EQ( NULL, desc );
+    const aiImporterDesc *desc( nullptr );
+    desc = aiGetImporterDesc(nullptr);
+    EXPECT_EQ(nullptr, desc);
 
     desc = aiGetImporterDesc( "obj" );
-    EXPECT_TRUE( NULL != desc );
+    EXPECT_TRUE(nullptr != desc);
+}
+
+TEST_F( AssimpAPITest, aiGetLastErrorTest ) {
+    const char *error = aiGetErrorString();
+    EXPECT_NE(nullptr, error);
 }

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů