From 4274738e81ad12923c2ae5c769b3350c36cf1505 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 18 Feb 2010 17:18:41 -0200 Subject: new macro 'luai_writestringerror' --- luaconf.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'luaconf.h') diff --git a/luaconf.h b/luaconf.h index 293f70ac..06b43aba 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.131 2010/01/21 16:31:24 roberto Exp roberto $ +** $Id: luaconf.h,v 1.132 2010/01/21 16:49:21 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -192,10 +192,16 @@ /* @@ luai_writestring defines how 'print' prints its results. -** CHANGE it if your system does not have a useful stdout. */ +#include #define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout) +/* +@@ luai_writestringerror defines how to print error messages. +** (A format string with one argument is enough for Lua...) +*/ +#define luai_writestringerror(s,p) fprintf(stderr, (s), (p)) + -- cgit v1.2.3-55-g6feb