Qualia  0.2
Macros | Typedefs
common.h File Reference
#include <stdlib.h>
#include <float.h>
#include <stdint.h>
#include <math.h>
#include <values.h>
#include <qualia/compat/Arduino.h>
#include <qualia/core/error.h>
#include <qualia/core/Allocator.h>
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define is_avr()   defined(__AVR__)
 True iff we are compiling for AVR. More...
 
#define is_arduino()   defined(ARDUINO)
 True iff we are compiling for Arduino (notice that is_arduino() implies is_avr()) More...
 
#define is_computer()   !defined(__AVR__)
 True iff we are compiling for a non-AVR platform. More...
 
#define __STDC_LIMIT_MACROS
 
#define bitFlip(value, bit)   ((value) ^= (1UL << (bit)))
 Flips bit bit# in element #value#. More...
 
#define INF   FLT_MAX
 
#define RANDOM_MAX   RAND_MAX
 

Typedefs

typedef float real
 

Macro Definition Documentation

#define __STDC_LIMIT_MACROS
#define bitFlip (   value,
  bit 
)    ((value) ^= (1UL << (bit)))

Flips bit bit# in element #value#.

#define INF   FLT_MAX
#define is_arduino ( )    defined(ARDUINO)

True iff we are compiling for Arduino (notice that is_arduino() implies is_avr())

#define is_avr ( )    defined(__AVR__)

True iff we are compiling for AVR.

This file provides some common includes and definition. Among other things, it gives access to some common Arduino functions when compiling on a computer. This file should be included at the top of every header file that uses Qualia.

#define is_computer ( )    !defined(__AVR__)

True iff we are compiling for a non-AVR platform.

#define RANDOM_MAX   RAND_MAX

Typedef Documentation

typedef float real