Now that frigging sucks man :(
If I dont use the HAL pins it works but if I try to use any pin it 
falls. So much for writing modular reusable code. What do people do, 
write in native C instead of the comp framework?


On 2014-05-15 12:26, andy pugh wrote:
> 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).
>

-- 

Regards /Groete

Marius D. Liebenberg
+27 82 698 3251
+27 12 743 6064
QQ 1767394877


------------------------------------------------------------------------------
"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