MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / Init

Method Init

MonaServer/sources/LUASocketAddress.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using namespace Mona;
26
27void LUASocketAddress::Init(lua_State* pState, SocketAddress& address) {
28 Script::AddComparator<SocketAddress>(pState);
29 lua_getmetatable(pState, -1);
30 lua_pushcfunction(pState, &LUASocketAddress::Call);
31 lua_setfield(pState, -2, "__call");
32 lua_pop(pState, 1);
33}
34
35void LUASocketAddress::Clear(lua_State* pState, SocketAddress& address) {
36 Script::ClearObject<LUAIPAddress>(pState,address.host());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected