Skip to content

Commit 511e83c

Browse files
committed
Shuffle around wrapper statements to fix setting arguments
1 parent 8581fed commit 511e83c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ifcwrap/IfcParseWrapper.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
void *arg = 0;
6060
int res = SWIG_ConvertPtr(obj, &arg, SWIGTYPE_p_IfcParse__IfcLateBoundEntity, 0);
6161
if (!SWIG_IsOK(res)) {
62-
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "Entity__set_argument" "', argument " "3"" of type '" "IfcParse::IfcLateBoundEntity *""'");
62+
SWIG_exception_fail(SWIG_ArgError(res), "Sequence element not of type IfcParse::IfcLateBoundEntity*");
6363
} else {
6464
$1->push(reinterpret_cast<IfcParse::IfcLateBoundEntity*>(arg));
6565
}

src/ifcwrap/IfcPython.i

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
#include "../ifcparse/IfcLateBoundEntity.h"
4242
%}
4343

44+
%include "IfcGeomWrapper.i"
45+
%include "IfcParseWrapper.i"
46+
4447
namespace std {
4548
%template(int_vector) vector<int>;
4649
%template(float_vector) vector<float>;
4750
%template(double_vector) vector<double>;
4851
%template(string_vector) vector<std::string>;
4952
%template(material_vector) vector<IfcGeom::Material>;
50-
};
51-
52-
%include "IfcGeomWrapper.i"
53-
%include "IfcParseWrapper.i"
53+
};

0 commit comments

Comments
 (0)