mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 21:02:28 +00:00
Shuffle around wrapper statements to fix setting arguments
This commit is contained in:
@@ -59,7 +59,7 @@
|
|||||||
void *arg = 0;
|
void *arg = 0;
|
||||||
int res = SWIG_ConvertPtr(obj, &arg, SWIGTYPE_p_IfcParse__IfcLateBoundEntity, 0);
|
int res = SWIG_ConvertPtr(obj, &arg, SWIGTYPE_p_IfcParse__IfcLateBoundEntity, 0);
|
||||||
if (!SWIG_IsOK(res)) {
|
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 {
|
} else {
|
||||||
$1->push(reinterpret_cast<IfcParse::IfcLateBoundEntity*>(arg));
|
$1->push(reinterpret_cast<IfcParse::IfcLateBoundEntity*>(arg));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,9 @@
|
|||||||
#include "../ifcparse/IfcLateBoundEntity.h"
|
#include "../ifcparse/IfcLateBoundEntity.h"
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
%include "IfcGeomWrapper.i"
|
||||||
|
%include "IfcParseWrapper.i"
|
||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
%template(int_vector) vector<int>;
|
%template(int_vector) vector<int>;
|
||||||
%template(float_vector) vector<float>;
|
%template(float_vector) vector<float>;
|
||||||
@@ -48,6 +51,3 @@ namespace std {
|
|||||||
%template(string_vector) vector<std::string>;
|
%template(string_vector) vector<std::string>;
|
||||||
%template(material_vector) vector<IfcGeom::Material>;
|
%template(material_vector) vector<IfcGeom::Material>;
|
||||||
};
|
};
|
||||||
|
|
||||||
%include "IfcGeomWrapper.i"
|
|
||||||
%include "IfcParseWrapper.i"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user