X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fdatatype.c;h=282385ed7e211c34173ff7dae4609f006ea80aa3;hb=aef8789873bd008d42aa50330ca98488fad91b31;hp=781470b651de5c71e9a20721730004b52714602f;hpb=c123666d24e5dda1e7242b0c31b90c8cea769f82;p=cc65 diff --git a/src/cc65/datatype.c b/src/cc65/datatype.c index 781470b65..282385ed7 100644 --- a/src/cc65/datatype.c +++ b/src/cc65/datatype.c @@ -755,3 +755,12 @@ long GetElementCount (const type* T) +type* GetElementType (type* T) +/* Return the element type of the given array type. */ +{ + CHECK (IsTypeArray (T)); + return T + DECODE_SIZE + 1; +} + + +