From 04054af596755643e6d11d69238bfffa68e1007b Mon Sep 17 00:00:00 2001 From: Rejean Loyer Date: Sun, 5 May 2013 10:56:48 -0400 Subject: [PATCH] ecp,ecc,ecs; added printing out given arguments on invalid syntax when in debug. --- compiler/ecc/ecc.ec | 7 +++++++ compiler/ecp/ecp.ec | 7 +++++++ compiler/ecs/ecs.ec | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/compiler/ecc/ecc.ec b/compiler/ecc/ecc.ec index 8498246..513293b 100644 --- a/compiler/ecc/ecc.ec +++ b/compiler/ecc/ecc.ec @@ -430,7 +430,14 @@ class CompilerApp : Application } if(!valid) + { printf($"Syntax:\n ecc [-t ] [-cpp ] [-o ] [-symbols ] [-I]* [-isystem ]* [-D]* -c \n"); +#ifdef _DEBUG + printf($"\nArguments given:"); + for(c = 1; c] [-cpp ] [-o ] [-symbols ] [-I]* [-isystem ]* [-D]* -c \n"); +#ifdef _DEBUG + printf($"\nArguments given:"); + for(c = 1; c] [, ]* -o \n"); +#ifdef _DEBUG + printf($"\nArguments given:"); + for(c = 1; c