aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_gui.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-02-15 01:38:45 +0000
committerGuy Harris <guy@alum.mit.edu>2013-02-15 01:38:45 +0000
commit80b0bc752e4a00ed77f4470ce5143d27f3c36d17 (patch)
treec4b0d19f8d338b3a046cf4ce8de77a1a0aa4ac6a /epan/wslua/wslua_gui.c
parent2c269c28643555b26a562be2ecf8d4b79acf566b (diff)
Add a new WSLUA_CLASS_FNREG_ALIAS() macro to register methods where the
function name isn't the same as the method name; this is used if we're providing compatibility aliases for method names. Use WSLUA_CLASS_FNREG() and WSLUA_CLASS_FNREG_ALIAS() for all method registrations. Fix the spelling of "prepend", but leave a compatibility alias in place. svn path=/trunk/; revision=47667
Diffstat (limited to 'epan/wslua/wslua_gui.c')
-rw-r--r--epan/wslua/wslua_gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/wslua/wslua_gui.c b/epan/wslua/wslua_gui.c
index e19ce866b8..a5c10c356f 100644
--- a/epan/wslua/wslua_gui.c
+++ b/epan/wslua/wslua_gui.c
@@ -387,10 +387,10 @@ static int ProgDlg__gc(lua_State* L) {
WSLUA_METHODS ProgDlg_methods[] = {
- {"new",ProgDlg_new},
- {"update",ProgDlg_update},
- {"stopped",ProgDlg_stopped},
- {"close",ProgDlg_close},
+ WSLUA_CLASS_FNREG(ProgDlg,new),
+ WSLUA_CLASS_FNREG(ProgDlg,update),
+ WSLUA_CLASS_FNREG(ProgDlg,stopped),
+ WSLUA_CLASS_FNREG(ProgDlg,close),
{0, 0}
};