commands.cxx

changeset 28
fb46d3d40064
parent 21
ae602e667879
child 33
fd35f6cb5f28
--- a/commands.cxx	Sun Jul 15 19:01:47 2012 +0300
+++ b/commands.cxx	Mon Jul 16 04:07:15 2012 +0300
@@ -142,15 +142,10 @@
 		numCommDefs++;
 	}
 	
-	/*
-	CommandDef* c;
-	ITERATE_COMMANDS (c) {
-		printf ("[%u] %s: %d, %d arguments, return type %d\n",
-			c->number, c->name.chars(), c->numargs, c->maxargs, c->returnvalue);
-	}
-	*/
+	delete r;
 	
-	delete r;
+	if (!numCommDefs)
+		error ("error: no commands defined!\n");
 	printf ("%d command definitions read.\n", numCommDefs);
 }
 

mercurial