ManaPlus
Macros
recvpacketdefine.h File Reference

(986a3bf)

Go to the source code of this file.

Macros

#define packet(pname, pid, sz, pfunc, ver)
 
#define packet2(pname, pid, sz, pfunc, ver)
 

Macro Definition Documentation

◆ packet

#define packet (   pname,
  pid,
  sz,
  pfunc,
  ver 
)
Value:
mPackets[pid].name = #pname; \
mPackets[pid].len = sz; \
mPackets[pid].func = pfunc; \
mPackets[pid].version = ver

Definition at line 25 of file recvpacketdefine.h.

◆ packet2

#define packet2 (   pname,
  pid,
  sz,
  pfunc,
  ver 
)
Value:
mPackets[(pid) + (evolPacketOffset)].name = #pname; \
mPackets[(pid) + (evolPacketOffset)].len = sz; \
mPackets[(pid) + (evolPacketOffset)].func = pfunc; \
mPackets[(pid) + (evolPacketOffset)].version = ver
int evolPacketOffset
Definition: net.cpp:40

Definition at line 31 of file recvpacketdefine.h.