Skip to content
Snippets Groups Projects
Commit b69edec0 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

better error messages (I hope)

Rev: src/las.c:1.57
parent 4943aa75
Branches
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
||| See the files COPYING and DISCLAIMER for more information. ||| See the files COPYING and DISCLAIMER for more information.
\*/ \*/
#include "global.h" #include "global.h"
RCSID("$Id: las.c,v 1.56 1998/04/06 20:31:58 hubbe Exp $"); RCSID("$Id: las.c,v 1.57 1998/04/09 20:38:28 hubbe Exp $");
#include "language.h" #include "language.h"
#include "interpret.h" #include "interpret.h"
...@@ -610,6 +610,12 @@ void resolv_constant(node *n) ...@@ -610,6 +610,12 @@ void resolv_constant(node *n)
push_int(0); push_int(0);
return; return;
case F_UNDEFINED:
if(compiler_pass==2)
yyerror("Expected constant, got undefined identifier");
push_int(0);
return;
default: default:
yyerror("Expected constant, got something else"); yyerror("Expected constant, got something else");
push_int(0); push_int(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment