Shuffle around wrapper statements to fix setting arguments

This commit is contained in:
Thomas Krijnen
2015-01-10 23:01:52 +00:00
parent 8581fed39b
commit 511e83c2c6
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -59,7 +59,7 @@
void *arg = 0;
int res = SWIG_ConvertPtr(obj, &arg, SWIGTYPE_p_IfcParse__IfcLateBoundEntity, 0);
if (!SWIG_IsOK(res)) {
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "Entity__set_argument" "', argument " "3"" of type '" "IfcParse::IfcLateBoundEntity *""'");
SWIG_exception_fail(SWIG_ArgError(res), "Sequence element not of type IfcParse::IfcLateBoundEntity*");
} else {
$1->push(reinterpret_cast<IfcParse::IfcLateBoundEntity*>(arg));
}
+4 -4
View File
@@ -41,13 +41,13 @@
#include "../ifcparse/IfcLateBoundEntity.h"
%}
%include "IfcGeomWrapper.i"
%include "IfcParseWrapper.i"
namespace std {
%template(int_vector) vector<int>;
%template(float_vector) vector<float>;
%template(double_vector) vector<double>;
%template(string_vector) vector<std::string>;
%template(material_vector) vector<IfcGeom::Material>;
};
%include "IfcGeomWrapper.i"
%include "IfcParseWrapper.i"
};