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

Method Init

MonaServer/sources/LUAIPAddress.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24using namespace Mona;
25
26void 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
34int LUAIPAddress::Call(lua_State *pState) {
35 SCRIPT_CALLBACK(IPAddress, address)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected