Commit a61a7a8
Add cross-platform host_region_base/end helpers to SharedMemory
Replace platform-conditional #[cfg] blocks and verbose turbofish
calls with host_region_base() and host_region_end() on SharedMemory.
This simplifies mapping_at() and the test region_for_memory helper.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>1 parent 98889be commit a61a7a8
2 files changed
Lines changed: 25 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | 724 | | |
730 | 725 | | |
731 | | - | |
| 726 | + | |
732 | 727 | | |
733 | 728 | | |
734 | 729 | | |
| |||
779 | 774 | | |
780 | 775 | | |
781 | 776 | | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
790 | 786 | | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
791 | 801 | | |
792 | 802 | | |
793 | 803 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1319 | 1319 | | |
1320 | 1320 | | |
1321 | 1321 | | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
1325 | | - | |
1326 | 1322 | | |
1327 | | - | |
1328 | | - | |
1329 | | - | |
1330 | | - | |
1331 | 1323 | | |
1332 | | - | |
| 1324 | + | |
1333 | 1325 | | |
1334 | 1326 | | |
1335 | 1327 | | |
| |||
0 commit comments