Files
Client/Server/RylServerProject/RylGameLibrary/Network/ClientSocket/Send/SendPacket.h
LGram16 dd97ddec92 Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code:
- Client: Game client source (moved to Client/Client/)
- Server: Game server source
- GameTools: Development tools
- CryptoSource: Encryption utilities
- database: Database scripts
- Script: Game scripts
- rylCoder_16.02.2008_src: Legacy coder tools
- GMFont, Game: Additional resources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 20:17:20 +09:00

45 lines
1.2 KiB
C++

#ifndef _GAMA_CLIENT_PACKET_SEND_H_
#define _GAMA_CLIENT_PACKET_SEND_H_
#include <cstdio>
#define _QUOTE(x) # x
#define QUOTE(x) _QUOTE(x)
#ifdef _DEBUG
#define CHECK_NULL_RETURN(value, retval)\
if(0 == (value)) { fprintf(stderr, QUOTE(__FUNCTION__) " - " QUOTE(value) " is NULL\n"); return (retval); }
#define CHECK_TRUE_RETURN(value, retval)\
if((value)) { fprintf(stderr, QUOTE(__FUNCTION__) " - " QUOTE(value) " is TRUE\n"); return (retval); }
#else
#define CHECK_NULL_RETURN(value, retval) if(0 == (value)) { return (retval); }
#define CHECK_TRUE_RETURN(value, retval) if((value)) { return (retval); }
#endif
namespace ClientNet
{
// forward decl.
class CClientEventHandler;
class CNetworkMsgBlock;
}
namespace SendPacket
{
bool SendPacket(ClientNet::CClientEventHandler* lpHandler,
ClientNet::CNetworkMsgBlock* lpNetworkMsgBlock,
unsigned short Len_In, unsigned char Cmd_In,
unsigned short State_In, unsigned short Error_In);
bool SendPacket(ClientNet::CClientEventHandler* lpHandler,
ClientNet::CNetworkMsgBlock* lpNetworkMsgBlock,
unsigned short Len_In, unsigned char Cmd_In, unsigned long Tick_In);
};
#endif