From c57b31e8819525c4fca5aa3d15596a4f1c2f97b8 Mon Sep 17 00:00:00 2001 From: Oldes Date: Thu, 6 Jun 2019 17:19:34 +0200 Subject: [PATCH] FEAT: adding VAL_UNI_TAIL macro for getting tail of unicode encoded series --- src/include/sys-value.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/include/sys-value.h b/src/include/sys-value.h index 08e4466bd1..d4d91f0d6f 100644 --- a/src/include/sys-value.h +++ b/src/include/sys-value.h @@ -601,6 +601,7 @@ typedef struct Reb_Series_Ref // Arg is a unicode value: #define VAL_UNI(v) UNI_HEAD(VAL_SERIES(v)) #define VAL_UNI_HEAD(v) UNI_HEAD(VAL_SERIES(v)) +#define VAL_UNI_TAIL(v) UNI_SKIP(VAL_SERIES(v), VAL_SERIES(v)->tail) #define VAL_UNI_DATA(v) UNI_SKIP(VAL_SERIES(v), VAL_INDEX(v)) // Get a char, from either byte or unicode string: