Loading

Paste #pvgvq0193

  1. #ifdef ENABLE_NETWORK
  2.   #define GET_CLIENT_INFO(temp, var) NetworkClientInfo *temp = FindClientInfo(var);
  3.   #define GET_ATTR(client, expr, null) (client==NULL?(null):(expr))
  4. #else
  5.   #define CLIENT_INFO(temp, var)
  6.   #define GET_ATTR(client, expr, null) (null)
  7. #endif
  8.  
  9. /* static */ char *ScriptClient::GetName(ScriptClient::ClientID client)
  10. {
  11.     GET_CLIENT_INFO(ci, client);
  12.     return GET_ATTR(ci, stredup(ci->client_name), NULL);
  13. }

Comments