diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-02-15 01:38:45 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-02-15 01:38:45 +0000 |
commit | 80b0bc752e4a00ed77f4470ce5143d27f3c36d17 (patch) | |
tree | c4b0d19f8d338b3a046cf4ce8de77a1a0aa4ac6a /epan/wslua/wslua_dumper.c | |
parent | 2c269c28643555b26a562be2ecf8d4b79acf566b (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_dumper.c')
-rw-r--r-- | epan/wslua/wslua_dumper.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/wslua/wslua_dumper.c b/epan/wslua/wslua_dumper.c index 8b081f00ec..9b9fb7426d 100644 --- a/epan/wslua/wslua_dumper.c +++ b/epan/wslua/wslua_dumper.c @@ -417,12 +417,12 @@ static int Dumper__gc(lua_State* L) { WSLUA_METHODS Dumper_methods[] = { - {"new", Dumper_new}, - {"new_for_current", Dumper_new_for_current}, - {"close", Dumper_close}, - {"flush", Dumper_flush}, - {"dump", Dumper_dump}, - {"dump_current", Dumper_dump_current}, + WSLUA_CLASS_FNREG(Dumper,new), + WSLUA_CLASS_FNREG(Dumper,new_for_current), + WSLUA_CLASS_FNREG(Dumper,close), + WSLUA_CLASS_FNREG(Dumper,flush), + WSLUA_CLASS_FNREG(Dumper,dump), + WSLUA_CLASS_FNREG(Dumper,dump_current), {0, 0} }; |