View previous topic :: View next topic |
Author |
Message |
mbradley
Joined: 11 Jul 2009 Posts: 118 Location: California, USA
|
nested functions |
Posted: Fri Jan 01, 2010 1:21 am |
|
|
I am curious, this compiles, but how does one use the nested function? or is it even possible?
I am just compiling misc items to fool around
Code: | void defunc(void)
{
void afunc(void)
{
set_timer1(0);
}
} |
_________________ Michael Bradley
www.mculabs.com
Open Drivers and Projects |
|
 |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Jan 01, 2010 2:30 am |
|
|
It appears to be a bug introduced in vs. 4.xxx. Probably nobody ever
tried it before. You could report it. They'll probably fix it. |
|
 |
mbradley
Joined: 11 Jul 2009 Posts: 118 Location: California, USA
|
|
Posted: Fri Jan 01, 2010 2:33 am |
|
|
Hmmm, if I could only do this:
defunc.afunc();
I would be soooo happy  _________________ Michael Bradley
www.mculabs.com
Open Drivers and Projects |
|
 |
|