Kaynağa Gözat

Removed throws from openctm.

bkaradzic 13 yıl önce
ebeveyn
işleme
8b19870cf3

+ 2 - 2
3rdparty/openctm/lib/openctmpp.h

@@ -95,7 +95,7 @@ class CTMimporter {
     {
       CTMenum err = ctmGetError(mContext);
       if(err != CTM_NONE)
-        throw ctm_error(err);
+        abort(); //throw ctm_error(err);
     }
 
   public:
@@ -251,7 +251,7 @@ class CTMexporter {
     {
       CTMenum err = ctmGetError(mContext);
       if(err != CTM_NONE)
-        throw ctm_error(err);
+        abort(); //throw ctm_error(err);
     }
 
   public:

+ 1 - 1
3rdparty/openctm/tools/dae.cpp

@@ -168,7 +168,7 @@ Source& GetSource(map<string, Source >& sources, map<string, vector<Input> >& ve
       
     }
   } else {
-    throw string("Error");
+    abort(); //throw string("Error");
   }
   
   return srcIterator->second;