replace g_return_val_if_fail by hkl_error when relevant
commit405bc6411a7cb6e5ce3588f7dc5f9db9ae46cadb
authorPicca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>
Fri, 8 Aug 2014 12:13:02 +0000 (8 14:13 +0200)
committerPicca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>
Fri, 8 Aug 2014 12:13:02 +0000 (8 14:13 +0200)
treef690f016dc7f287cb2a40347ac5f24ae6c7f80e4
parent3d3ab4a7358c1b691c0c1bcc1025a8019ab83957
replace g_return_val_if_fail by hkl_error when relevant

In case of programming error the programm stop with an abort.
Using gdb you can obtain a backtrace with 'bt' command.
This hkl_error is like assert except that it is not possible to get rid
of them with NDEBUG.

Recoverable errors (not due to programming error) are reported via the
usual GError system.
15 files changed:
hkl/hkl-axis.c
hkl/hkl-binding.c
hkl/hkl-geometry.c
hkl/hkl-lattice.c
hkl/hkl-macros-private.h
hkl/hkl-parameter-private.h
hkl/hkl-parameter.c
hkl/hkl-pseudoaxis-auto-private.h
hkl/hkl-pseudoaxis-auto.c
hkl/hkl-pseudoaxis-common-hkl.c
hkl/hkl-pseudoaxis-common-psi.c
hkl/hkl-pseudoaxis-private.h
hkl/hkl-pseudoaxis.c
hkl/hkl-sample.c
tests/hkl-geometry-t.c