Skip to content

Commit 0b33d1e

Browse files
committed
1 parent 011a5ed commit 0b33d1e

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

swmm-toolkit/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["swig", "scikit-build-core>=0.4.3"]
2+
requires = ["swig>=4.4.0", "scikit-build-core>=0.4.3"]
33
build-backend = "scikit_build_core.build"
44

55
[project]

swmm-toolkit/src/swmm/toolkit/output.i

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,19 @@ and return a (possibly) different pointer */
124124
/* INSERTS CUSTOM EXCEPTION HANDLING IN WRAPPER */
125125
%exception SMO_init
126126
{
127-
$function
127+
$action
128128
}
129129

130130
%exception SMO_close
131131
{
132-
$function
132+
$action
133133
}
134134

135135
%exception
136136
{
137137
char *err_msg;
138138
SMO_clearError(arg1);
139-
$function
139+
$action
140140
if (SMO_checkError(arg1, &err_msg))
141141
{
142142
PyErr_SetString(PyExc_Exception, err_msg);

swmm-toolkit/src/swmm/toolkit/solver.i

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,23 +190,23 @@
190190
/* INSERTS CUSTOM EXCEPTION HANDLING IN WRAPPER */
191191
%exception swmm_getSemVersion
192192
{
193-
$function
193+
$action
194194
}
195195

196196
%exception swmm_getBuildId
197197
{
198-
$function
198+
$action
199199
}
200200

201201
%exception swmm_getVersion
202202
{
203-
$function
203+
$action
204204
}
205205

206206
/* INSERTS CUSTOM EXCEPTION HANDLING IN WRAPPER */
207207
%exception
208208
{
209-
$function
209+
$action
210210
if (result > 0) {
211211
char* errorMsg = NULL;
212212
int errorCode = 0;

0 commit comments

Comments
 (0)