summaryrefslogtreecommitdiffstats
path: root/src/resources
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2023-02-24 10:25:33 (EST)
committer P. J. McDermott <pj@pehjota.net>2023-02-24 10:25:33 (EST)
commit8ce13b8b9f1411a90e84ef6aee8c8409cb845acf (patch)
tree3ef77d1b2dabd8eee175cfa919d9f239e3a72ee5 /src/resources
parent7df50e1dafa5dbd8c061e1eb4e2f5729b66f0ef4 (diff)
downloadoverworld-rpg-8ce13b8b9f1411a90e84ef6aee8c8409cb845acf.zip
overworld-rpg-8ce13b8b9f1411a90e84ef6aee8c8409cb845acf.tar.gz
overworld-rpg-8ce13b8b9f1411a90e84ef6aee8c8409cb845acf.tar.bz2
Add function attributes
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/map.h6
1 files changed, 4 insertions, 2 deletions
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