Jump to content

sarahjohnson

Members
  • Posts

    2
  • Joined

  • Last visited

  1. A small compiler-guard macro would keep this portable: define GFX_NO_INLINE as __attribute__((noinline)) for GCC/Clang, __declspec(noinline) for MSVC, and empty otherwise, then annotate both _gfxGetStackState and _gfxGetStackStateInFn. A brief comment noting that the stack detection depends on frame layout would also help prevent future refactors from removing it.
  2. Child locks often fail because a paw can hook and pull the same way a finger does. Try a latch that needs two different motions (press then slide), a magnetic cabinet lock, or a strap around the handles. Keep cereal and treat bags inside hard-sided containers, and clear nearby counters or shelves the cat uses as a launch point. A motion-triggered alarm can also tell you which cabinet is being targeted.
×
×
  • Create New...