From 2a888b3d5ae1f485649b811ea433f286238fd308 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 10 Aug 2005 10:56:40 +0000 Subject: c.f. 21590: metafy_line()/unmetafy_line() now support wide characters --- Src/Zle/zle.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Src/Zle/zle.h') diff --git a/Src/Zle/zle.h b/Src/Zle/zle.h index f23d7aa2c..ff4d81b47 100644 --- a/Src/Zle/zle.h +++ b/Src/Zle/zle.h @@ -279,3 +279,16 @@ enum { ZSL_COPY = 1, /* Copy the argument, don't modify it */ ZSL_TOEND = 2, /* Go to the end of the new line */ }; + +#ifdef DEBUG +#define STRINGIFY_LITERAL(x) # x +#define STRINGIFY(x) STRINGIFY_LITERAL(x) +#define ERRMSG(x) (__FILE__ ":" STRINGIFY(__LINE__) ": " x) +#define METACHECK() \ + DPUTS(zlemetaline == NULL, ERRMSG("line not metafied")) +#define UNMETACHECK() \ + DPUTS(zlemetaline != NULL, ERRMSG("line metafied")) +#else +#define METACHECK() +#define UNMETACHECK() +#endif -- cgit 1.4.1