diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-02-21 10:44:53 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-02-21 10:44:53 -0300 |
commit | a83ed55f1e3e20f73d01489c18889bb8554593ce (patch) | |
tree | 816177a00ce20b36503b6a48bb7d1956c0432859 /lcorolib.c | |
parent | b559aed2d38c6eafcc624da8599b6ac52e11f17c (diff) | |
download | lua-a83ed55f1e3e20f73d01489c18889bb8554593ce.tar.gz lua-a83ed55f1e3e20f73d01489c18889bb8554593ce.tar.bz2 lua-a83ed55f1e3e20f73d01489c18889bb8554593ce.zip |
added 'return' (when possible) to calls to error functions
Diffstat (limited to 'lcorolib.c')
-rw-r--r-- | lcorolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcorolib.c,v 1.3 2011/08/23 17:24:34 roberto Exp roberto $ | 2 | ** $Id: lcorolib.c,v 1.4 2012/04/27 18:59:04 roberto Exp roberto $ |
3 | ** Coroutine Library | 3 | ** Coroutine Library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -73,7 +73,7 @@ static int luaB_auxwrap (lua_State *L) { | |||
73 | lua_insert(L, -2); | 73 | lua_insert(L, -2); |
74 | lua_concat(L, 2); | 74 | lua_concat(L, 2); |
75 | } | 75 | } |
76 | lua_error(L); /* propagate error */ | 76 | return lua_error(L); /* propagate error */ |
77 | } | 77 | } |
78 | return r; | 78 | return r; |
79 | } | 79 | } |