Unidata / UDUNITS-2

API and utility for arithmetic manipulation of units of physical quantities
http://www.unidata.ucar.edu/software/udunits
Other
59 stars 36 forks source link

Add ability to call ut_set_error_message_handler with ut_ignore without argument #119

Open darianboggs opened 6 months ago

darianboggs commented 6 months ago

I am using udunits-2.2.28 as a library for a Fortran application, and I need to set the error message handler to ut_ignore from Fortran.

I have written Fortran interfaces to the udunits library procedures I need to use, but I cannot write an interface to ut_ignore because of the variadic list.

Since I want to disable the error handler, I need a 0 argument function to call ut_set_error_message_handler with ut_ignore or some way to call ut_set_error_meassage_handler without passing ut_ignore.