Comparison

util-src/pposix.c @ 6620:50eaefeec013

util-src/*.c: Per convention call luaL_error() as argument to return
author Florian Zeitz <florob@babelmonkeys.de>
date Fri, 03 Apr 2015 20:30:14 +0200
parent 6615:8e4572a642cb
child 6642:113d321976b6
comparison
equal deleted inserted replaced
6619:78d1706982b2 6620:50eaefeec013
706 int ret; 706 int ret;
707 off_t offset, len; 707 off_t offset, len;
708 FILE* f = *(FILE**) luaL_checkudata(L, 1, LUA_FILEHANDLE); 708 FILE* f = *(FILE**) luaL_checkudata(L, 1, LUA_FILEHANDLE);
709 709
710 if(f == NULL) { 710 if(f == NULL) {
711 luaL_error(L, "attempt to use a closed file"); 711 return luaL_error(L, "attempt to use a closed file");
712 } 712 }
713 713
714 offset = luaL_checkinteger(L, 2); 714 offset = luaL_checkinteger(L, 2);
715 len = luaL_checkinteger(L, 3); 715 len = luaL_checkinteger(L, 3);
716 716