aboutsummaryrefslogtreecommitdiff
path: root/scripts/create_c_api_projections.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/create_c_api_projections.py')
-rwxr-xr-xscripts/create_c_api_projections.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/create_c_api_projections.py b/scripts/create_c_api_projections.py
index a56e99b3..a551469d 100755
--- a/scripts/create_c_api_projections.py
+++ b/scripts/create_c_api_projections.py
@@ -137,6 +137,7 @@ for sectiondef in compounddef.iter('sectiondef'):
cppfile.write(" * Angular parameters are expressed in (angUnitName, angUnitConvFactor).\n")
cppfile.write(" */\n")
cppfile.write("PJ_OBJ* " + decl + "{\n");
+ cppfile.write(" SANITIZE_CTX(ctx);\n");
cppfile.write(" try {\n");
if has_linear:
cppfile.write(" UnitOfMeasure linearUnit(createLinearUnit(linearUnitName, linearUnitConvFactor));\n")
@@ -156,7 +157,7 @@ for sectiondef in compounddef.iter('sectiondef'):
cppfile.write(", Scale(" + param[1] + ")")
cppfile.write(");\n")
- cppfile.write(" return proj_obj_create_conversion(ctx, conv);\n")
+ cppfile.write(" return proj_obj_create_conversion(conv);\n")
cppfile.write(" } catch (const std::exception &e) {\n");
cppfile.write(" proj_log_error(ctx, __FUNCTION__, e.what());\n")
cppfile.write(" }\n")