Error on unknown jump locations
This commit is contained in:
@@ -174,6 +174,9 @@ public class LParser{
|
|||||||
|
|
||||||
//load destination indices
|
//load destination indices
|
||||||
for(var i : jumps){
|
for(var i : jumps){
|
||||||
|
if(!jumpLocations.containsKey(i.location)){
|
||||||
|
error("Undefined jump location: \"" + i.location + "\". Make sure the jump label exists and is typed correctly.");
|
||||||
|
}
|
||||||
i.jump.destIndex = jumpLocations.get(i.location, -1);
|
i.jump.destIndex = jumpLocations.get(i.location, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user