From 5d3cc5def8d2566fdd1741732ad207d4beed1230 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Sat, 7 Feb 2009 10:23:15 -0200 Subject: 'writestring' changed into a configurable macro --- luaconf.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'luaconf.h') diff --git a/luaconf.h b/luaconf.h index 24d8da52..4f116cd3 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.99 2008/07/11 17:50:31 roberto Exp roberto $ +** $Id: luaconf.h,v 1.100 2008/07/18 19:58:10 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -220,6 +220,13 @@ #define LUA_IDSIZE 60 +/* +@@ luai_writestring defines how 'print' prints its results. +** CHANGE it if your system does not have a useful stdout. +*/ +#define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout) + + /* ** {================================================================== ** Stand-alone configuration -- cgit v1.2.3-55-g6feb