aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/luaconf.h b/luaconf.h
index 86d3758e..c881919b 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.164 2011/10/07 19:53:05 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.165 2011/11/05 15:29:05 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -210,10 +210,14 @@
210 210
211/* 211/*
212@@ luai_writestring/luai_writeline define how 'print' prints its results. 212@@ luai_writestring/luai_writeline define how 'print' prints its results.
213** They are only used in libraries and the stand-alone program. (The #if
214** avoids including 'stdio.h' everywhere.)
213*/ 215*/
216#if defined(LUA_LIB) || defined(lua_c) || defined(luaall_c)
214#include <stdio.h> 217#include <stdio.h>
215#define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout) 218#define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout)
216#define luai_writeline() (luai_writestring("\n", 1), fflush(stdout)) 219#define luai_writeline() (luai_writestring("\n", 1), fflush(stdout))
220#endif
217 221
218/* 222/*
219@@ luai_writestringerror defines how to print error messages. 223@@ luai_writestringerror defines how to print error messages.