|
|
|
|
|
by jkelleyrtp
355 days ago
|
|
You basically need to wrap your program's `tick()` function. Otherwise you might be in the middle of malloc, hot-patch, and your struct's layout and alignment changes, and your program crashes due to undefined behavior. The goal is that frameworks just bake `subsecond::current` into their `tick()` function and end-users get hot-patching for free. |
|
Also, didn't the article say explicitly that struct layout changes aren't supported??