mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +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,
|
||||
struct SectionSpec const *attributes)
|
||||
{
|
||||
checkcodesection();
|
||||
|
||||
if (currentLoadSection)
|
||||
fatalerror("`LOAD` blocks cannot be nested");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user