From 046d829e5d9c07cd829de9fa4ec2c9a07bbcf859 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Mon, 30 Dec 2013 11:02:48 +0200 Subject: [PATCH] Introduce a PreMain proc in the C codegen The rationale here is that it has become too hard to step into a program when #line directives are enabled. You have to skip over many lines of init code that doesn't have corresponding lines in the nimrod program. Now, you can just step-out of PreMain and go straight to the useful code in NimMain. --- compiler/cgen.nim | 98 ++++++++++++++++++++++++++----------------- compiler/cgendata.nim | 3 +- 2 files changed, 62 insertions(+), 39 deletions(-) diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 3aef60fa6e..b08647512a 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -943,44 +943,60 @@ proc genFilenames(m: BModule): PRope = for i in 0..