From ab7b02702a25689a2dd81b25fc859424a2ffcec9 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 15 Dec 2020 15:32:10 +0100 Subject: proj_log_XXX functions(): add the short name of the operation as prefix in the error message --- src/proj_internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/proj_internal.h') 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; \ -- cgit v1.2.3