Macros | |
#define | BITPIT_COMMA , |
#define | BITPIT_CREATE_WORKSPACE(workspace, item_type, size, stack_size) |
#define | BITPIT_DEPRECATED(func) func |
#define | BITPIT_UNREACHABLE(str) assert(!str) |
#define | BITPIT_UNUSED(variable) |
#define BITPIT_COMMA , |
Comma.
Definition at line 97 of file compiler.hpp.
#define BITPIT_CREATE_WORKSPACE | ( | workspace, | |
item_type, | |||
size, | |||
stack_size ) |
Create a workspace with the specified size.
If the size is less than the specified stack size, the workspace will make use of an array created on the stack, otherwise a container with the specified size will be created on the heap and that container will be used for the workspace.
NOTE: this macro will always create an array on the stack, whether it will be used as workspace or not depend on the requested workspace size.
workspace | is the name of the workspace |
item_type | is the type of items the workspace will contain |
size | is the size of the workspace |
stack_size | is the maximum size the workspace can have to be allocated on the stack |
Definition at line 76 of file commonUtils.hpp.
#define BITPIT_DEPRECATED | ( | func | ) | func |
Deprecated macro.
func | id the function/method to be marked as deprecated |
Definition at line 87 of file compiler.hpp.
#define BITPIT_UNREACHABLE | ( | str | ) | assert(!str) |
Unreachable macro.
Useful for suppressing "control reaches end of non-void function" warnings.
str | is the error message that will be displayed it the unreachable code is reached |
Definition at line 53 of file compiler.hpp.
#define BITPIT_UNUSED | ( | variable | ) |
Unused macro.
variable | is the name of variable to be marked as unused |
Definition at line 63 of file compiler.hpp.