mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-08 19:35:13 +00:00
Adds more descriptive error message for Duplicate Label
This commit is contained in:
parent
c0ce8d40b5
commit
9e92d13f70
|
@ -3257,7 +3257,7 @@ DO
|
||||||
s = Labels(r).Scope
|
s = Labels(r).Scope
|
||||||
IF s = subfuncn OR s = -1 THEN 'same scope?
|
IF s = subfuncn OR s = -1 THEN 'same scope?
|
||||||
IF s = -1 THEN Labels(r).Scope = subfuncn 'acquire scope
|
IF s = -1 THEN Labels(r).Scope = subfuncn 'acquire scope
|
||||||
IF Labels(r).State = 1 THEN a$ = "Duplicate label": GOTO errmes
|
IF Labels(r).State = 1 THEN a$ = "Duplicate label (" + RTRIM$(Labels(r).cn) + ")": GOTO errmes
|
||||||
'aquire state 0 types
|
'aquire state 0 types
|
||||||
tlayout$ = RTRIM$(Labels(r).cn)
|
tlayout$ = RTRIM$(Labels(r).cn)
|
||||||
GOTO addlabaq100
|
GOTO addlabaq100
|
||||||
|
@ -3319,7 +3319,7 @@ DO
|
||||||
s = Labels(r).Scope
|
s = Labels(r).Scope
|
||||||
IF s = subfuncn OR s = -1 THEN 'same scope?
|
IF s = subfuncn OR s = -1 THEN 'same scope?
|
||||||
IF s = -1 THEN Labels(r).Scope = subfuncn 'acquire scope
|
IF s = -1 THEN Labels(r).Scope = subfuncn 'acquire scope
|
||||||
IF Labels(r).State = 1 THEN a$ = "Duplicate label": GOTO errmes
|
IF Labels(r).State = 1 THEN a$ = "Duplicate label (" + RTRIM$(Labels(r).cn) + ")": GOTO errmes
|
||||||
'aquire state 0 types
|
'aquire state 0 types
|
||||||
tlayout$ = RTRIM$(Labels(r).cn)
|
tlayout$ = RTRIM$(Labels(r).cn)
|
||||||
GOTO addlabaq
|
GOTO addlabaq
|
||||||
|
|
Loading…
Reference in a new issue