mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 07:35:45 +01:00
fix: use atrb_pure for functions reading global state
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user