#include <iostream>
#include <cmath>
#include <ctime>
#include <memory>
#include <assert.h>
#include "create/create.h"
Go to the source code of this file.
|
#define | BOUND(val, min, max) (val = BOUND_CONST(val,min,max)) |
|
#define | BOUND_CONST(val, min, max) (val<min?min:(val>max?max:val)) |
|
#define | GET_DATA(id) (data->getPacket(id)->getData()) |
|
#define BOUND |
( |
|
val, |
|
|
|
min, |
|
|
|
max |
|
) |
| (val = BOUND_CONST(val,min,max)) |
#define BOUND_CONST |
( |
|
val, |
|
|
|
min, |
|
|
|
max |
|
) |
| (val<min?min:(val>max?max:val)) |
#define GET_DATA |
( |
|
id | ) |
(data->getPacket(id)->getData()) |