SpiNNFrontEndCommon  development
Common support code for user-facing front end systems.
Macros | Typedefs
common-typedefs.h File Reference

Data type definitions for SpiNNaker Neuron-modelling. More...

#include <stdint.h>
#include <stdbool.h>
#include <stdfix.h>
#include "stdfix-full-iso.h"

Go to the source code of this file.

Macros

#define use(x)   do {} while ((x)!=(x))
 This can be used to silence gcc's "-Wall -Wextra" warnings about failure to use function arguments. More...
 

Typedefs

typedef uint32_t size_t
 An unsigned integer used for the size of objects.
 
typedef uint32_t index_t
 An unsigned integer used as an index.
 
typedef uint32_t counter_t
 An unsigned integer used as a counter or iterator.
 
typedef uint32_t timer_t
 An unsigned integer used to track the simulation time.
 
typedef uint32_t * address_t
 A generic pointer to a word.
 

Detailed Description

Data type definitions for SpiNNaker Neuron-modelling.

Definition in file common-typedefs.h.

Macro Definition Documentation

◆ use

#define use (   x)    do {} while ((x)!=(x))

This can be used to silence gcc's "-Wall -Wextra" warnings about failure to use function arguments.

Obviously you'll only be using this during debug, for unused arguments of callback functions, or where conditional compilation means that the accessor functions return a constant

Parameters
[in]xThe variable that is "used". Not safe with floating point!

Definition at line 79 of file common-typedefs.h.