| 24 | using namespace Mona; |
| 25 | |
| 26 | void LUAIPAddress::Init(lua_State* pState, IPAddress& address) { |
| 27 | Script::AddComparator<IPAddress>(pState); |
| 28 | lua_getmetatable(pState, -1); |
| 29 | lua_pushcfunction(pState, &LUAIPAddress::Call); |
| 30 | lua_setfield(pState, -2, "__call"); |
| 31 | lua_pop(pState, 1); |
| 32 | } |
| 33 | |
| 34 | int LUAIPAddress::Call(lua_State *pState) { |
| 35 | SCRIPT_CALLBACK(IPAddress, address) |
nothing calls this directly
no outgoing calls
no test coverage detected