mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-04 11:15:39 +00:00
Prevent using LOAD blocks outide code sections
This commit is contained in:
1 parent
ecf44c784c
commit
fb5e768142
1 file changed
+2
@@ -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