shared: Print .c file/line number in x* routines
authorBryce Harrington <bryce@osg.samsung.com>
Wed, 16 Mar 2016 21:15:19 +0000 (14:15 -0700)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 17 Mar 2016 12:17:02 +0000 (14:17 +0200)
commitae5d7198f7fe949385279369c0b4c06a6e5ea260
treee9397e61fdd00a33a5380a860be993389e0208e7
parente99e4bf2b9aa13baae46f2a49ff9c9ed8ca631c7
shared: Print .c file/line number in x* routines

Switches from inline to pre-processor definitions in order to utilize
__FILE__ and __LINE__ from the .c file in order to display the location
of memory allocation failures when failing.

Now xmalloc, et al calls will produce:

    [weston-info] clients/weston-info.c:714: out of memory (1024)

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
shared/xalloc.h