diff options
author | Peter Wu <peter@lekensteyn.nl> | 2016-04-03 10:58:44 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-06-14 18:32:51 +0000 |
commit | f6e223c89540c6acc8a89244f050189f88ecfb78 (patch) | |
tree | a6059a5891ec31a38d0aff006a9e52a12d3815e5 /epan/wslua/wslua.h | |
parent | cecb227af5a0ea6eda2f62447a1ece148948912b (diff) |
wslua: Drop unused "push_code" macro parameter
Reduce noise, no caller has used this parameter since its introduction.
Msotly automated regex search and replace.
Change-Id: I4b1180bfee8544b38d19c9c440ff5b9b0dc080b2
Reviewed-on: https://code.wireshark.org/review/14790
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/wslua/wslua.h')
-rw-r--r-- | epan/wslua/wslua.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/wslua/wslua.h b/epan/wslua/wslua.h index 35ed62df3e..8211d839c5 100644 --- a/epan/wslua/wslua.h +++ b/epan/wslua/wslua.h @@ -362,10 +362,10 @@ typedef gchar* Struct; * WSLUA_CLASS_DEFINE must be used with a trailing ';' * (a dummy typedef is used to be syntactically correct) */ -#define WSLUA_CLASS_DEFINE(C,check_code,push_code) \ - WSLUA_CLASS_DEFINE_BASE(C,check_code,push_code,NULL) +#define WSLUA_CLASS_DEFINE(C,check_code) \ + WSLUA_CLASS_DEFINE_BASE(C,check_code,NULL) -#define WSLUA_CLASS_DEFINE_BASE(C,check_code,push_code,retval) \ +#define WSLUA_CLASS_DEFINE_BASE(C,check_code,retval) \ C to##C(lua_State* L, int idx) { \ C* v = (C*)lua_touserdata (L, idx); \ if (!v) luaL_error(L, "bad argument %d (%s expected, got %s)", idx, #C, lua_typename(L, lua_type(L, idx))); \ @@ -383,7 +383,6 @@ C* push##C(lua_State* L, C v) { \ luaL_checkstack(L,2,"Unable to grow stack\n"); \ p = (C*)lua_newuserdata(L,sizeof(C)); *p = v; \ luaL_getmetatable(L, #C); lua_setmetatable(L, -2); \ - push_code; \ return p; \ }\ gboolean is##C(lua_State* L,int i) { \ |