Sfoglia il codice sorgente

Put perror() call inside ifdef.

Brucey 5 anni fa
parent
commit
55b16842f3
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      enet.mod/enet/include/enet.h

+ 3 - 1
enet.mod/enet/include/enet.h

@@ -3116,7 +3116,9 @@ extern "C" {
                 enet_protocol_remove_sent_unreliable_commands(currentPeer);
 
                 if (sentLength < 0) {
-perror("sent no bytes");
+                    #ifdef ENET_DEBUG
+                        perror("sent no bytes");
+                    #endif
                     return -1;
                 }