From 8ce13b8b9f1411a90e84ef6aee8c8409cb845acf Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 24 Feb 2023 10:25:33 -0500 Subject: Add function attributes --- (limited to 'src/resources/map.h') diff --git a/src/resources/map.h b/src/resources/map.h index 73f004e..0d6b21e 100644 --- a/src/resources/map.h +++ b/src/resources/map.h @@ -112,8 +112,10 @@ struct map { struct map *map_get(const char *path); void map_free(struct map *map); void map_add_tileset(struct map *m, struct tileset *t, Uint32 firstgid); -struct map_palette *map_get_palette(struct map *m, const char *name); -struct layer *map_get_layer(struct map *m, const char *name); +struct map_palette *map_get_palette(struct map *m, const char *name) + __attribute__((__pure__)); +struct layer *map_get_layer(struct map *m, const char *name) + __attribute__((__pure__)); void map_add_exit(struct map *m, struct map_exit *e); #endif -- cgit v0.9.1