aboutsummaryrefslogtreecommitdiff
path: root/src/proj_internal.h
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-12-15 15:32:10 +0100
committerEven Rouault <even.rouault@spatialys.com>2020-12-15 17:24:54 +0100
commitab7b02702a25689a2dd81b25fc859424a2ffcec9 (patch)
treed2daadd54ab6e06d0e4b488fcea5d6e0fdfb2123 /src/proj_internal.h
parent1d803550e7059729cf2734fc6190993e8b8404bf (diff)
downloadPROJ-ab7b02702a25689a2dd81b25fc859424a2ffcec9.tar.gz
PROJ-ab7b02702a25689a2dd81b25fc859424a2ffcec9.zip
proj_log_XXX functions(): add the short name of the operation as prefix in the error message
Diffstat (limited to 'src/proj_internal.h')
-rw-r--r--src/proj_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/proj_internal.h b/src/proj_internal.h
index bf9e5386..f0d3c8b3 100644
--- a/src/proj_internal.h
+++ b/src/proj_internal.h
@@ -354,6 +354,7 @@ struct PJconsts {
**************************************************************************************/
PJ_CONTEXT *ctx = nullptr;
+ const char *short_name = nullptr; /* From pj_list.h */
const char *descr = nullptr; /* From pj_list.h or individual PJ_*.c file */
paralist *params = nullptr; /* Parameter list */
char *def_full = nullptr; /* Full textual definition (usually 0 - set by proj_pj_info) */
@@ -719,6 +720,7 @@ C_NAMESPACE PJ *pj_##name (PJ *P) { \
P = pj_new(); \
if (nullptr==P) \
return nullptr; \
+ P->short_name = #name; \
P->descr = des_##name; \
P->need_ellps = NEED_ELLPS; \
P->left = PJ_IO_UNITS_RADIANS; \