aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-02-18 17:18:41 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-02-18 17:18:41 -0200
commit4274738e81ad12923c2ae5c769b3350c36cf1505 (patch)
tree995af0a432f0e6a7b2b42f085c8b7ee6f21b4804 /luaconf.h
parent0d7d559dcc4291c2df5106ec121a43239b1faa91 (diff)
downloadlua-4274738e81ad12923c2ae5c769b3350c36cf1505.tar.gz
lua-4274738e81ad12923c2ae5c769b3350c36cf1505.tar.bz2
lua-4274738e81ad12923c2ae5c769b3350c36cf1505.zip
new macro 'luai_writestringerror'
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/luaconf.h b/luaconf.h
index 293f70ac..06b43aba 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.131 2010/01/21 16:31:24 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.132 2010/01/21 16:49:21 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*/
@@ -192,10 +192,16 @@
192 192
193/* 193/*
194@@ luai_writestring defines how 'print' prints its results. 194@@ luai_writestring defines how 'print' prints its results.
195** CHANGE it if your system does not have a useful stdout.
196*/ 195*/
196#include <stdio.h>
197#define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout) 197#define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout)
198 198
199/*
200@@ luai_writestringerror defines how to print error messages.
201** (A format string with one argument is enough for Lua...)
202*/
203#define luai_writestringerror(s,p) fprintf(stderr, (s), (p))
204
199 205
200 206
201 207