diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-10-15 01:55:59 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-10-15 01:55:59 +0200 |
commit | 555734fcd3aef4c83605d70d0456dda28b7b5ace (patch) | |
tree | 9c34fe5bc58d5f3d4c0a7622045adc7aa1d17a98 /crawl-ref/source/cluautil.h | |
parent | acf5187334f2cfb983a1a8de07d1e77f73e4283a (diff) | |
download | crawl-ref-555734fcd3aef4c83605d70d0456dda28b7b5ace.tar.gz crawl-ref-555734fcd3aef4c83605d70d0456dda28b7b5ace.zip |
Massive spacing fixes: "( spaces after parentheses )".
I did review it manually to find places where they made sense (like some
tables), but for a massive sed job like this there might be places that
I missed.
Diffstat (limited to 'crawl-ref/source/cluautil.h')
-rw-r--r-- | crawl-ref/source/cluautil.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/cluautil.h b/crawl-ref/source/cluautil.h index bc6588894f..b4b18899ac 100644 --- a/crawl-ref/source/cluautil.h +++ b/crawl-ref/source/cluautil.h @@ -68,20 +68,20 @@ template <class T> inline static T *clua_get_lightuserdata(lua_State *ls, int ndx) { return (lua_islightuserdata(ls, ndx))? - static_cast<T *>( lua_touserdata(ls, ndx) ) + static_cast<T *>(lua_touserdata(ls, ndx)) : NULL; } template <class T> inline static T *clua_get_userdata(lua_State *ls, const char *mt, int ndx = 1) { - return static_cast<T*>( luaL_checkudata( ls, ndx, mt ) ); + return static_cast<T*>(luaL_checkudata(ls, ndx, mt)); } template <class T> static int lua_object_gc(lua_State *ls) { - T **pptr = static_cast<T**>( lua_touserdata(ls, 1) ); + T **pptr = static_cast<T**>(lua_touserdata(ls, 1)); if (pptr) delete *pptr; return (0); @@ -90,10 +90,10 @@ static int lua_object_gc(lua_State *ls) template <class T> T *clua_new_userdata( lua_State *ls, const char *mt) { - void *udata = lua_newuserdata( ls, sizeof(T) ); + void *udata = lua_newuserdata(ls, sizeof(T)); luaL_getmetatable(ls, mt); lua_setmetatable(ls, -2); - return static_cast<T*>( udata ); + return static_cast<T*>(udata); } template <typename T> @@ -150,7 +150,7 @@ void push_item(lua_State *ls, item_def *item); c.x = luaL_checkint(ls, p1); \ c.y = luaL_checkint(ls, p2); \ if (!boundfn(c)) \ - luaL_error( \ + luaL_error( \ ls, \ make_stringf("Point (%d,%d) is out of bounds", \ c.x, c.y).c_str()); \ |