[MIRROR] Cleans up a review mso left about list types [MDB IGNORE] (#17583)

* Cleans up a review mso left about list types (#71090)

## About The Pull Request

No sense trying to cache a list ref, it'll never work anyhow Also this
is in ref tracking and I want that as fast as I humanly can make it

* Cleans up a review mso left about list types

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-11-20 00:26:57 +00:00
committed by GitHub
co-authored by LemonInTheDark
parent 8c19257b88
commit a64196c2ce
+3 -1
View File
@@ -3,6 +3,8 @@
#define TYPEID_NORMAL_LIST "f"
//helper macros
#define GET_TYPEID(ref) ( ( (length(ref) <= 10) ? "TYPEID_NULL" : copytext(ref, 4, -7) ) )
#define IS_NORMAL_LIST(L) (GET_TYPEID(text_ref(L)) == TYPEID_NORMAL_LIST)
// Only allowed raw ref, since this is for lists explicitly and they will get no use from it
// Also it tends to be used in a hot context so let's be nice yes?
#define IS_NORMAL_LIST(L) (GET_TYPEID("\ref[L]") == TYPEID_NORMAL_LIST)