From c94d56f49178568c986363a3709b88c3a0d7f2e1 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 2 Feb 2016 21:18:54 +0100 Subject: [PATCH] [DEV] replace 'include guard' with 'pragma once' --- enet/Ftp.h | 7 ++----- enet/Http.h | 7 ++----- enet/Tcp.h | 7 ++----- enet/Udp.h | 7 ++----- enet/debug.h | 5 +---- enet/enet.h | 5 +---- test/debug.h | 7 +------ 7 files changed, 11 insertions(+), 34 deletions(-) diff --git a/enet/Ftp.h b/enet/Ftp.h index 7ffc864..08d9456 100644 --- a/enet/Ftp.h +++ b/enet/Ftp.h @@ -5,9 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - -#ifndef __ENET_FTP_H__ -#define __ENET_FTP_H__ +#pragma once namespace enet { class Ftp { @@ -15,6 +13,5 @@ namespace enet { Ftp() { }; virtual ~Ftp() { }; }; -}; +} -#endif diff --git a/enet/Http.h b/enet/Http.h index ecc263a..b5ba96f 100644 --- a/enet/Http.h +++ b/enet/Http.h @@ -5,9 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - -#ifndef __ENET_HTTP_H__ -#define __ENET_HTTP_H__ +#pragma once #include #include @@ -58,6 +56,5 @@ namespace enet { std::string unEscapeChar(const std::string& _value); bool receiveData(); }; -}; +} -#endif diff --git a/enet/Tcp.h b/enet/Tcp.h index 422fa05..b740583 100644 --- a/enet/Tcp.h +++ b/enet/Tcp.h @@ -5,9 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - -#ifndef __ENET_TCP_H__ -#define __ENET_TCP_H__ +#pragma once namespace enet { class Tcp { @@ -150,6 +148,5 @@ namespace enet { return ret/sizeof(T); } }; -}; +} -#endif diff --git a/enet/Udp.h b/enet/Udp.h index f838066..4c52a30 100644 --- a/enet/Udp.h +++ b/enet/Udp.h @@ -5,9 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - -#ifndef __ENET_UDP_H__ -#define __ENET_UDP_H__ +#pragma once namespace enet { class Udp { @@ -15,6 +13,5 @@ namespace enet { Udp() { }; virtual ~Udp() { }; }; -}; +} -#endif diff --git a/enet/debug.h b/enet/debug.h index d32e95d..f879351 100644 --- a/enet/debug.h +++ b/enet/debug.h @@ -5,9 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - -#ifndef __ENET_DEBUG_H__ -#define __ENET_DEBUG_H__ +#pragma once #include @@ -40,5 +38,4 @@ namespace enet { } \ } while (0) -#endif diff --git a/enet/enet.h b/enet/enet.h index 0617187..194de19 100644 --- a/enet/enet.h +++ b/enet/enet.h @@ -5,13 +5,10 @@ * * @license APACHE v2.0 (see license file) */ - -#ifndef __ENET_H__ -#define __ENET_H__ +#pragma once #include #include #include #include -#endif diff --git a/test/debug.h b/test/debug.h index 1ce0350..c52a5d0 100644 --- a/test/debug.h +++ b/test/debug.h @@ -5,9 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - -#ifndef __APPL_DEBUG_H__ -#define __APPL_DEBUG_H__ +#pragma once #include @@ -39,6 +37,3 @@ namespace appl { assert(!#cond); \ } \ } while (0) - -#endif -