From f0993114811eef4e4dee703d4ebb4769c21f3ff9 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 6 Nov 2010 23:58:57 +0000 Subject: Better alignment testing git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Text_Buffer.H | 2 ++ 1 file changed, 2 insertions(+) (limited to 'FL/Fl_Text_Buffer.H') diff --git a/FL/Fl_Text_Buffer.H b/FL/Fl_Text_Buffer.H index 25ce72b79..cc9e0be70 100644 --- a/FL/Fl_Text_Buffer.H +++ b/FL/Fl_Text_Buffer.H @@ -39,8 +39,10 @@ #ifdef ASSERT_UTF8 # include # define IS_UTF8_ALIGNED(a) if (a && *a) assert(fl_utf8len(*(a))>0); +# define IS_UTF8_ALIGNED2(a, b) if (b>=0 && blength()) assert(fl_utf8len(a->byte_at(b))>0); #else # define IS_UTF8_ALIGNED(a) +# define IS_UTF8_ALIGNED2(a, b) #endif -- cgit v1.2.3