diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-03-03 15:53:02 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-03-03 15:53:02 -0300 |
commit | 915a9a912c3f59a0f24c4e59506933922aa0b17c (patch) | |
tree | 6e837c3306672a1dcb4215f62cf92c007bd145f1 | |
parent | ae0a5e2142c943329a2e8d33f8d9964c9d090249 (diff) | |
download | lua-915a9a912c3f59a0f24c4e59506933922aa0b17c.tar.gz lua-915a9a912c3f59a0f24c4e59506933922aa0b17c.tar.bz2 lua-915a9a912c3f59a0f24c4e59506933922aa0b17c.zip |
just in case, better to flush error messages
-rw-r--r-- | luaconf.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.132 2010/01/21 16:49:21 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.133 2010/02/18 19:18:41 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 | */ |
@@ -200,7 +200,8 @@ | |||
200 | @@ luai_writestringerror defines how to print error messages. | 200 | @@ luai_writestringerror defines how to print error messages. |
201 | ** (A format string with one argument is enough for Lua...) | 201 | ** (A format string with one argument is enough for Lua...) |
202 | */ | 202 | */ |
203 | #define luai_writestringerror(s,p) fprintf(stderr, (s), (p)) | 203 | #define luai_writestringerror(s,p) \ |
204 | (fprintf(stderr, (s), (p)), fflush(stderr)) | ||
204 | 205 | ||
205 | 206 | ||
206 | 207 | ||