<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">btw in my builds for windows I needed to declare the ifdef like this:<div><br></div><div>#if !PRODUCTION &amp;&amp; defined(__GNUC__) &amp;&amp; !(defined(__MINGW32__) || defined(__MINGW64__)) &amp;&amp; !defined(NoDbgRegParms)</div><div><br></div><div>because otherwise mingw build was going crazy :P</div><div><br></div><div>Esteban<br><div><br></div><div><br><div><div>On 31 Jul 2014, at 19:56, gettimothy &lt;<a href="mailto:gettimothy@zoho.com">gettimothy@zoho.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"><div><div style="font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;"><div>Thank you,<br></div><div><br></div><div>I am able to compile by modifying the cogit.h and cointerp.h to unconditionally set the NoDbgRegParms --so that confirms my theory.</div><div><br></div><div><br><blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(245, 245, 245); position: static; z-index: auto;"><div>The !defined(<span style="font-family:verdana,arial,helvetica,sans-serif;font-size:14px">NoDbgRegParms) phrase allows someone to define an alternative on the command line via a -D argument, so it allows the</span></div> <div><span style="font-family:verdana,arial,helvetica,sans-serif;font-size:14px">&nbsp; &nbsp;&nbsp;# define NoDbgRegParms __attribute__ ((regparm (0)))</span></div><div><span style="font-family:verdana,arial,helvetica,sans-serif;font-size:14px">def to be a default, rather thna the only way.</span></div></blockquote> <br>ahhh...."ding! ding! ding!" goes the bell in my head...</div><div><br></div><div><br></div><div><br><blockquote style="border-top-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid; padding-top: 7px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px; background-color: rgb(245, 245, 245);">PRODUCTION is defined in platforms/Cross/vm/sqAssert.h</blockquote></div><div>I see it. -DNDEBUG toggles it , my problems with assert enabled builds probably lies in here....<br><blockquote style="border-top-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid; padding-top: 7px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px; background-color: rgb(245, 245, 245);">#undef assert<br># define __stringify(foo) #foo<br># define __stringifyNum(n) __stringify(n)<br>#ifdef NDEBUG /* compatible with Mac OS X (FreeBSD) /usr/include/assert.h */<br># define assert(expr) 0 /* hack disabling of asserts.  Better in makefile? */<br># define asserta(expr) (expr)<br># define assertf(msg) 0<br># define assertl(expr,line) 0<br># define assertal(expr,line) (expr)<br># define assertfl(msg,line) 0<br># define PRODUCTION 1<br>#elif 1<br># define assert(expr)  ((expr)||(warning(#expr " " __stringifyNum(__LINE__)),0))<br># define asserta(expr) ((expr)||(warning(#expr " " __stringifyNum(__LINE__)),0))<br># define assertf(msg)  (warning(#msg " " __stringifyNum(__LINE__)),0)<br># define assertl(expr,line)  ((expr)||(warningat(#expr,line),0))<br># define assertal(expr,line) ((expr)||(warningat(#expr,line),0))<br># define assertfl(msg,line)  (warningat(#msg,line),0)<br># define PRODUCTION 0<br>#endif<br></blockquote> <br></div><div><br></div><div>so, I have two/three more -D definitions to think through...-DNoDbgRegParms &nbsp;-DNoDbgRegParms "something funky here" &nbsp; -DNeverInline<br></div><div><br></div><div><br></div><div>Thanks your answer has given me the tools I need to think this through. .</div><div><br></div><div>cheers.</div><div><br></div><div>tty</div></div></div></blockquote></div><br></div></div></body></html>