Skip to content

File tang_defs.h

File List > defs > tang_defs.h

Go to the documentation of this file

#ifndef UTIL_TANG_DEF_H
#define UTIL_TANG_DEF_H

#include "stdint.h"

/******************************************************************************/
/****************************** Pre processor Switches ************************/
/******************************************************************************/
#ifndef __PYX_EXTERN_C
#ifdef _WIN32
#ifndef _CRT_SECURE_NO_WARNINGS

#define _CRT_SECURE_NO_WARNINGS    (1u)
#else
#if (_CRT_SECURE_NO_WARNINGS != 1u)
#error \
    "Something has gone wrong. We want this define to be 1 and it's already not"
#else
#endif
#endif
#ifndef _CRT_DEPRECATE_TEXT

#define _CRT_DEPRECATE_TEXT    (1u)
#else
#if (_CRT_DEPRECATE_TEXT != 1u)
#error \
    "Something has gone wrong. We want this define to be 1 and it's already not"
#else
#endif
#endif
#endif
#endif

#ifndef STATIC_INLINE
#if defined(__GNUC__) || defined(__cplusplus) || \
    (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))
#define STATIC_INLINE    static inline
#else
#define STATIC_INLINE    static
#endif
#endif /* STATIC_INLINE */

#define STATIC_INLINE_UINT8    STATIC_INLINE uint8_t
/******************************************************************************/
/****************************** Includes **************************************/
/******************************************************************************/

/******************************************************************************/
/****************************** TypeDefs **************************************/
/******************************************************************************/

/******************************************************************************/
/****************************** Defines **************************************/
/******************************************************************************/

#ifndef UTIL_TANG_DEFS_MAX_CROSSINGNUM
#define UTIL_TANG_DEFS_MAX_CROSSINGNUM    (20u)
#endif

#ifndef UTIL_TANG_DEFS_INF_TANG_STR
#define UTIL_TANG_DEFS_INF_TANG_STR    ("infty")
#endif

#ifndef UTIL_TANG_DEFS_ZERO_TANG_STR
#define UTIL_TANG_DEFS_ZERO_TANG_STR    ("0")
#endif

#ifndef UTIL_TANG_DEFS_ONE_TANG_STR
#define UTIL_TANG_DEFS_ONE_TANG_STR    ("1")
#endif

#ifndef UTIL_TANG_DEFS_M_ONE_TANG_STR
#define UTIL_TANG_DEFS_M_ONE_TANG_STR    ("-1")
#endif

#endif /* end UTIL_TANG_DEF_H */