From d3a70a285d03224fde9e6ef36eba9de21b773f39 Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Wed, 28 Oct 2015 23:03:37 +0100 Subject: Revised error handling - Functions warn() and die() replaced by GNU-like error(3) function - Register cleanup() with atexit(3) - Functions called by cleanup() are marked with CLEANUP and are not allowed to call exit(3) --- image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'image.h') diff --git a/image.h b/image.h index 35c0d71..8932fdf 100644 --- a/image.h +++ b/image.h @@ -69,7 +69,7 @@ typedef struct { void img_init(img_t*, win_t*); bool img_load(img_t*, const fileinfo_t*); -void img_close(img_t*, bool); +CLEANUP void img_close(img_t*, bool); void img_render(img_t*); -- cgit v1.2.3-54-g00ecf