summaryrefslogtreecommitdiffhomepage
path: root/libs/iwinfo/src/iwinfo_lualib.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-08-19 20:52:46 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-08-19 20:52:46 +0000
commit47dc4ded767f863f03279bc099d28ba0f0661c2a (patch)
treeb554ff2f7bcf92a6d66e9ab9050ed1d48e71b87e /libs/iwinfo/src/iwinfo_lualib.h
parent7f6538004335d2a09180817a88bd61745d59732a (diff)
libs/iwinfo: unify LUA_WRAP_ASSOCLIST and LUA_WRAP_TXPWRLIST macros
Diffstat (limited to 'libs/iwinfo/src/iwinfo_lualib.h')
-rw-r--r--libs/iwinfo/src/iwinfo_lualib.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/libs/iwinfo/src/iwinfo_lualib.h b/libs/iwinfo/src/iwinfo_lualib.h
index 909080bb4..f7eba149d 100644
--- a/libs/iwinfo/src/iwinfo_lualib.h
+++ b/libs/iwinfo/src/iwinfo_lualib.h
@@ -59,18 +59,10 @@
return 1; \
}
-#define LUA_WRAP_ASSOCLIST(type) \
- static int iwinfo_L_##type##_assoclist(lua_State *L)\
- { \
- return iwinfo_L_assoclist(L, \
- type##_get_assoclist); \
- }
-
-#define LUA_WRAP_TXPWRLIST(type) \
- static int iwinfo_L_##type##_txpwrlist(lua_State *L)\
+#define LUA_WRAP_LIST(type,op) \
+ static int iwinfo_L_##type##_##op(lua_State *L) \
{ \
- return iwinfo_L_txpwrlist(L, \
- type##_get_txpwrlist); \
+ return iwinfo_L_##op(L, type##_get_##op); \
}
#endif