From 8126aa6bb8d1a5fc498f9c0ee4d309282df7d1ab Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 12 Jul 2008 22:28:10 +0000 Subject: [PATCH] using 'goto' is now an error --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402412 --- sourcepawn/compiler/sc1.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sourcepawn/compiler/sc1.c b/sourcepawn/compiler/sc1.c index 03383e16..e3720e54 100644 --- a/sourcepawn/compiler/sc1.c +++ b/sourcepawn/compiler/sc1.c @@ -6265,6 +6265,8 @@ static void dogoto(void) /* if we were inside an endless loop, assume that we jump out of it */ endlessloop=0; + error(4, "goto"); + if (lex(&val,&st)==tSYMBOL) { sym=fetchlab(st); jumplabel((int)sym->addr);