[DEV] replace 'include guard' with 'pragma once'

This commit is contained in:
Edouard DUPIN 2016-02-02 21:18:54 +01:00
parent 0b2162e216
commit c94d56f491
7 changed files with 11 additions and 34 deletions

View File

@ -5,9 +5,7 @@
* *
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once
#ifndef __ENET_FTP_H__
#define __ENET_FTP_H__
namespace enet { namespace enet {
class Ftp { class Ftp {
@ -15,6 +13,5 @@ namespace enet {
Ftp() { }; Ftp() { };
virtual ~Ftp() { }; virtual ~Ftp() { };
}; };
}; }
#endif

View File

@ -5,9 +5,7 @@
* *
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once
#ifndef __ENET_HTTP_H__
#define __ENET_HTTP_H__
#include <enet/Tcp.h> #include <enet/Tcp.h>
#include <vector> #include <vector>
@ -58,6 +56,5 @@ namespace enet {
std::string unEscapeChar(const std::string& _value); std::string unEscapeChar(const std::string& _value);
bool receiveData(); bool receiveData();
}; };
}; }
#endif

View File

@ -5,9 +5,7 @@
* *
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once
#ifndef __ENET_TCP_H__
#define __ENET_TCP_H__
namespace enet { namespace enet {
class Tcp { class Tcp {
@ -150,6 +148,5 @@ namespace enet {
return ret/sizeof(T); return ret/sizeof(T);
} }
}; };
}; }
#endif

View File

@ -5,9 +5,7 @@
* *
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once
#ifndef __ENET_UDP_H__
#define __ENET_UDP_H__
namespace enet { namespace enet {
class Udp { class Udp {
@ -15,6 +13,5 @@ namespace enet {
Udp() { }; Udp() { };
virtual ~Udp() { }; virtual ~Udp() { };
}; };
}; }
#endif

View File

@ -5,9 +5,7 @@
* *
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once
#ifndef __ENET_DEBUG_H__
#define __ENET_DEBUG_H__
#include <etk/log.h> #include <etk/log.h>
@ -40,5 +38,4 @@ namespace enet {
} \ } \
} while (0) } while (0)
#endif

View File

@ -5,13 +5,10 @@
* *
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once
#ifndef __ENET_H__
#define __ENET_H__
#include <enet/Udp.h> #include <enet/Udp.h>
#include <enet/Tcp.h> #include <enet/Tcp.h>
#include <enet/Http.h> #include <enet/Http.h>
#include <enet/Ftp.h> #include <enet/Ftp.h>
#endif

View File

@ -5,9 +5,7 @@
* *
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once
#ifndef __APPL_DEBUG_H__
#define __APPL_DEBUG_H__
#include <etk/log.h> #include <etk/log.h>
@ -39,6 +37,3 @@ namespace appl {
assert(!#cond); \ assert(!#cond); \
} \ } \
} while (0) } while (0)
#endif