![]() |
Open Lighting Architecture 0.10.9
|
Helper macros.
Go to the source code of this file.
Macros | |
| #define | DISALLOW_COPY_AND_ASSIGN(TypeName) |
| Creates dummy copy constructor and assignment operator declarations. | |
| #define | OLA_UNUSED |
| Mark unused arguments & types. | |
| #define | OLA_FALLTHROUGH |
| Mark switch cases as fallthrough when required. | |
| #define | STATIC_ASSERT(x) |
| Compile time assert(). | |
| #define | PACK(__Declaration__) |
| Pack structures. | |
| #define DISALLOW_COPY_AND_ASSIGN | ( | TypeName | ) |
Creates dummy copy constructor and assignment operator declarations.
Use this in the private: section of a class to prevent copying / assignment.
| #define OLA_FALLTHROUGH |
Mark switch cases as fallthrough when required.
| #define OLA_UNUSED |
Mark unused arguments & types.
| #define PACK | ( | __Declaration__ | ) |
Pack structures.
In order to account for platform differences with regard to packing, we need to use the following macro while declaring types that need to have a specific binary layout. Taken from: http://stackoverflow.com/questions/1537964/ visual-c-equivalent-of-gccs-attribute-packed
| #define STATIC_ASSERT | ( | x | ) |
Compile time assert().