mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
[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:
co-authored by
LemonInTheDark
parent
8c19257b88
commit
a64196c2ce
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user