fix: use atrb_pure for functions reading global state

This commit is contained in:
2025-07-24 14:53:38 +02:00
parent 8964a1a563
commit 4005163d61

View File

@@ -44,7 +44,7 @@ struct nbt_path {
atrb_const int nbt_isprim(u8 tag); atrb_const int nbt_isprim(u8 tag);
/* gets the byte size of an NBT tag's data (excluding id and name), returns `0` upon error. */ /* gets the byte size of an NBT tag's data (excluding id and name), returns `0` upon error. */
atrb_const size_t nbt_tagdatlen(const u8 *buf); atrb_pure size_t nbt_tagdatlen(const u8 *buf);
/* gets the tag size of primitive types, returns `>0` on success, `<0` on failure */ /* gets the tag size of primitive types, returns `>0` on success, `<0` on failure */
atrb_const int nbt_primsize(u8 tag); atrb_const int nbt_primsize(u8 tag);