• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • MethodGate
  • MethodGate Class

    Entry-point guard for detecting dangling pointer access in methods. More...

    Header: #include <MethodGate>
    Since: 1.0

    Detailed Description

    MethodGate is instantiated at the start of member functions using the OC_METHODGATE() macro. It validates that both the guard object and the parent 'this' pointer are in valid memory ranges, helping detect use of dangling pointers or null object access.

    The check compares addresses against OC_LOWEST_POSSIBLE_ADDRESS to catch obvious invalid pointers early.

    See also FunctionGate.