mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Prevent using LOAD blocks outide code sections
This commit is contained in:
@@ -206,6 +206,8 @@ void out_NewSection(char const *pzName, uint32_t type, int32_t org,
|
|||||||
void out_SetLoadSection(char const *name, uint32_t type, int32_t org,
|
void out_SetLoadSection(char const *name, uint32_t type, int32_t org,
|
||||||
struct SectionSpec const *attributes)
|
struct SectionSpec const *attributes)
|
||||||
{
|
{
|
||||||
|
checkcodesection();
|
||||||
|
|
||||||
if (currentLoadSection)
|
if (currentLoadSection)
|
||||||
fatalerror("`LOAD` blocks cannot be nested");
|
fatalerror("`LOAD` blocks cannot be nested");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user