#include <stdint.h>
Go to the source code of this file.
Data Structures | |
union | addr64_t |
This union helps transfering pointers between PPE and the SPE. More... | |
Defines | |
#define | dump(x, fmt) printf("%s:%u: %s=" fmt "\n", __FILE__, __LINE__, #x, x) |
Dump variable with format string. |
Definition in file types.h.
#define dump | ( | x, | |||
fmt | ) | printf("%s:%u: %s=" fmt "\n", __FILE__, __LINE__, #x, x) |
Dump variable with format string.
The given variable is dumped with information about file and line via printf. A format string must be given for correct output.
x | Variable to dump. | |
fmt | Formant string for printf. |
Given the file 'example.c':
void main() { int i = 5; dump(i, %i"); }
This will give the output:
example.c:5: i=5