summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cluautil.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-07-05 12:14:09 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-07-05 12:14:09 +0200
commitc41419c4f47bbf0737d3fedf58128c835d2c4e3b (patch)
tree764ae18c107df39fd90af718922036bd245561ca /crawl-ref/source/cluautil.h
parentb80adef8882143cad34f3c8bcc9a8ccbd4440223 (diff)
downloadcrawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.tar.gz
crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.zip
Drop parentheses around scalar values in "return".
Diffstat (limited to 'crawl-ref/source/cluautil.h')
-rw-r--r--crawl-ref/source/cluautil.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/cluautil.h b/crawl-ref/source/cluautil.h
index 1b9511283f..6818decd57 100644
--- a/crawl-ref/source/cluautil.h
+++ b/crawl-ref/source/cluautil.h
@@ -21,25 +21,25 @@ extern "C" {
static int name(lua_State *ls) \
{ \
wrapexpr; \
- return (0); \
+ return 0; \
}
#define PLUARET(type, val) \
{ \
lua_push##type(ls, val); \
- return (1); \
+ return 1; \
}
#define LUARET1(name, type, val) \
static int name(lua_State *ls) \
{ \
lua_push##type(ls, val); \
- return (1); \
+ return 1; \
}
#define LUARET2(name, type, val1, val2) \
static int name(lua_State *ls) \
{ \
lua_push##type(ls, val1); \
lua_push##type(ls, val2); \
- return (2); \
+ return 2; \
}
#define ASSERT_DLUA \
@@ -86,7 +86,7 @@ static int lua_object_gc(lua_State *ls)
T **pptr = static_cast<T**>(lua_touserdata(ls, 1));
if (pptr)
delete *pptr;
- return (0);
+ return 0;
}
template <class T> T *clua_new_userdata(
@@ -113,7 +113,7 @@ static int dlua_push_object_type(lua_State *ls, const char *meta, const T &data)
*ptr = new T(data);
else
lua_pushnil(ls);
- return (1);
+ return 1;
}
/*
@@ -194,7 +194,7 @@ static int clua_gentable(lua_State *ls, const list &strings, lpush push)
push(ls, strings[i]);
lua_rawseti(ls, -2, i + 1);
}
- return (1);
+ return 1;
}
int clua_pushcxxstring(lua_State *ls, const std::string &s);