simpler way to create messages for errors in escape sequences

This commit is contained in:
Roberto Ierusalimschy
2014-01-31 13:14:22 -02:00
parent 86dd8bf3f5
commit 5a73e3ad9e
2 changed files with 33 additions and 28 deletions

3
lzio.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: lzio.h,v 1.26 2011/07/15 12:48:03 roberto Exp roberto $
** $Id: lzio.h,v 1.27 2013/06/07 14:51:10 roberto Exp roberto $
** Buffered streams
** See Copyright Notice in lua.h
*/
@@ -32,6 +32,7 @@ typedef struct Mbuffer {
#define luaZ_sizebuffer(buff) ((buff)->buffsize)
#define luaZ_bufflen(buff) ((buff)->n)
#define luaZ_buffremove(buff,i) ((buff)->n -= (i))
#define luaZ_resetbuffer(buff) ((buff)->n = 0)