helper functions for getting/setting flags in guard_object
| 59 | |
| 60 | // helper functions for getting/setting flags in guard_object |
| 61 | static bool initializerHasRun(uint64_t* guard_object) |
| 62 | { |
| 63 | // the lowest byte marks if it has been inited |
| 64 | return (*((uint8_t*)guard_object) != 0); |
| 65 | } |
| 66 | |
| 67 | static void setInitializerHasRun(uint64_t* guard_object) |
| 68 | { |
no outgoing calls
no test coverage detected