diff --git a/includes/std/mem.pat b/includes/std/mem.pat index 2f5d2f7..84d962a 100644 --- a/includes/std/mem.pat +++ b/includes/std/mem.pat @@ -46,6 +46,15 @@ namespace auto std::mem { return $ >= (std::mem::base_address() + std::mem::size()); }; + /** + Function that returns true if the cursor position is at or beyond the given address + @param address The address to compare against + @return True if the cursor is at or beyond the given address + */ + fn reached(u128 address) { + return $ >= address; + }; + /** Aligns the given value to the given alignment @param alignment The alignment to align to