aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-09-05 16:45:42 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-09-05 16:45:42 -0300
commit1bdde38bd24b137a240aede92363837e3d1a79b9 (patch)
treefeb4d9bc8c4dc3c3bf815bd1d21b837c92debf59 /lauxlib.c
parentb2bc3b44b6bdf5efd783a50c28e108ac3bcba9fd (diff)
downloadlua-1bdde38bd24b137a240aede92363837e3d1a79b9.tar.gz
lua-1bdde38bd24b137a240aede92363837e3d1a79b9.tar.bz2
lua-1bdde38bd24b137a240aede92363837e3d1a79b9.zip
no more newlines at the end of error messages
Diffstat (limited to 'lauxlib.c')
-rw-r--r--lauxlib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lauxlib.c b/lauxlib.c
index 65b1def3..84d7feaa 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.c,v 1.83 2002/08/08 20:08:41 roberto Exp roberto $ 2** $Id: lauxlib.c,v 1.84 2002/08/30 20:00:59 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -81,8 +81,7 @@ LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) {
81 luaL_where(L, 1); 81 luaL_where(L, 1);
82 lua_pushvfstring(L, fmt, argp); 82 lua_pushvfstring(L, fmt, argp);
83 va_end(argp); 83 va_end(argp);
84 lua_pushliteral(L, "\n"); 84 lua_concat(L, 2);
85 lua_concat(L, 3);
86 return lua_error(L); 85 return lua_error(L);
87} 86}
88 87