Re: Detecting a C translated bound program
- Posted by Matt Lewis <matthewwalkerlewis at gmail?c?m> Oct 25, 2007
- 574 views
OtterDad wrote: > > I have a couple of programs that refuse to behave when bound into C, but > behave > just fine when simply bound with the interpreter. Specific reasons for failure > aren't important for this discussion. Occasionally I step on my own toes and > accidentally bind a program incorrectly. Is there a way I can tell from within > the bound program itself if it was translated into C so I can catch my own > mistake > prior to deployment? BTW I'm still using Euphoria Version 2.4. I'll assume you mean translated, compiled and linked. It's more difficult (and probably impossible in 2.4) to do this if you're using a bound executable. You could define a constant and set it to zero. Before running emake, edit init.c (or wherever it gets assigned, maybe in one of the main*.c files) to set the constant to 1. Matt