On 15 May 2014 07:02, Marius Liebenberg <[email protected]> wrote:
> Is it allowed to make a function call from within the FUNCTION(_) block?

Yes and no.

The problem is that the called function is not passed the data
structure with the pins in it, unless you pass it explicitly.

See: 
http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=commit;h=86304217a4d867f9ede6a1feab7ac4862901b721
for a fix to the identical bug you found.

I believe that if you were to copy the macro-expansion of FUNCTION()
into your own function call it would probably be OK, but then the
.comp file would contain references to a data structure that is not
apparently defined anywhere. (It is defined in the generated C, but
not in the .comp).

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to