I have a simple issue wrt error handling in the interpreter.

I need to determine wether the current Interp instance is running under task 
("for real") or for the UI ("I dont bother about hardware at all").


What I'd do is add a canon function, say 'SIMULATED()' or so, which returns 
true from gcodemodule.cc and saicanon.cc, and false from emccanon.cc , and use 
that to driver interpreter behaviour. 

Valid approach? or maybe there's a simple way which I'm overlooking.

thanks, 
Michael


Background: the way I understand it, the pseudo-canon interface presented to 
Interp through gcodemodule.cc fakes "all well" so preview runs to an end; 
whatever actual program execution then delivers is a separate issue (right?)





------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to