diff options
Diffstat (limited to 'libs/iwinfo/src/iwinfo_lualib.h')
-rw-r--r-- | libs/iwinfo/src/iwinfo_lualib.h | 14 |
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 |