[DEV] replace 'include guard' with 'pragma once'
This commit is contained in:
parent
0b2162e216
commit
c94d56f491
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user