mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 03:02:06 +00:00
Use std::unordered_map and std::vector for sections
This allows us to control the order in which sections are iterated, instead of it depending on the internals of `std::map`. (This order is arbitrary, but should be deterministic regardless.)
This commit is contained in:
@@ -13,7 +13,7 @@ SECTION "test", ROM0
|
||||
charmap "<FAR>", $08
|
||||
|
||||
; At this point, enough nodes were allocated for 'foo' to be reallocated.
|
||||
; Its value in the charmaps' std::map should have been updated too,
|
||||
; Its value in the charmaps' `std::unordered_map` should have been updated too,
|
||||
; so that usages of 'foo' will not segfault.
|
||||
|
||||
; This uses 'foo; by switching to it.
|
||||
|
||||
Reference in New Issue
Block a user