[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)
*/
#ifndef __ENET_FTP_H__
#define __ENET_FTP_H__
#pragma once
namespace enet {
class Ftp {
@ -15,6 +13,5 @@ namespace enet {
Ftp() { };
virtual ~Ftp() { };
};
};
}
#endif

View File

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

View File

@ -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

View File

@ -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

View File

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

View File

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

View File

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