src/definitions.h File Reference

General definitions. More...

#include "os.h"

Include dependency graph for definitions.h:

This graph shows which files directly or indirectly include this file:


Defines

#define  WIIMOTE_PI   3.14159265f
#define  WIIUSE_ERROR(fmt,...)   fprintf(stderr, "[ERROR] " fmt "\n", ##__VA_ARGS__)
#define  WIIUSE_WARNING(fmt,...)   fprintf(stderr, "[WARNING] " fmt "\n", ##__VA_ARGS__)
#define  WIIUSE_INFO(fmt,...)   fprintf(stderr, "[INFO] " fmt "\n", ##__VA_ARGS__)
#define  WIIUSE_DEBUG(fmt,...)
#define  RAD_TO_DEGREE(r)   ((r * 180.0f) / WIIMOTE_PI)
#define  DEGREE_TO_RAD(d)   (d * (WIIMOTE_PI / 180.0f))
#define  BIG_ENDIAN_LONG(i)   (htonl(i))
#define  BIG_ENDIAN_SHORT(i)   (htons(i))
#define  absf(x)   ((x >= 0) ? (x) : (x * -1.0f))
#define  diff_f(x, y)   ((x >= y) ? (absf(x - y)) : (absf(y - x)))

Detailed Description

General definitions.


Generated on Wed Apr 2 19:30:08 2008 for wiiuse by  doxygen 1.5.4