Host library for controlling a WiConnect enabled Wi-Fi module.
Dependents: wiconnect-ota_example wiconnect-web_setup_example wiconnect-test-console wiconnect-tcp_server_example ... more
Diff: internal/common.h
- Revision:
- 17:7268f365676b
- Parent:
- 16:7f1d6d359787
- Child:
- 24:e27e23297f02
- Child:
- 26:8067e3d463d3
--- a/internal/common.h Wed Aug 13 04:41:04 2014 -0700 +++ b/internal/common.h Sat Aug 23 05:39:17 2014 -0700 @@ -26,15 +26,18 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY * OF SUCH DAMAGE. */ -#pragma once +#ifndef _COMMON_H_ +#define _COMMON_H_ -#include "WiconnectCommands.h" +#include "WiconnectCommands.h" + + /* Note we need the 2 concats below because arguments to ## * are not expanded, so we need to expand __LINE__ with one indirection * before doing the actual concatenation. */ -#define ASSERT_CONCAT_(a, b) a##b +#define ASSERT_CONCAT_(a, b) a ## b #define ASSERT_CONCAT(a, b) ASSERT_CONCAT_(a, b) #define ct_assert(e) enum { ASSERT_CONCAT(assert_line_, __LINE__) = 1/(!!(e)) } @@ -90,3 +93,6 @@ } \ ptr = _buffer; #endif + + +#endif