View unanswered posts | View active topics It is currently Thu Sep 18, 2014 7:49 am






Reply to topic  [ 1 post ] 
Tasks and declaration inline 
Author Message
Novice

Joined: Sun Feb 24, 2008 6:15 pm
Posts: 50
Post Tasks and declaration inline
Hi,

i've write a method in order to use it in 3 differents tasks. But during the compilation i obtain 2 warning which said that i need to declare my method 'inline'. When i add inline in front of my declaration the IDE closed after the compilation!!!
Code:
void myMethod(int var)
{
...
}

task task1()
{
   myMethod(1);
}

task task2()
{
    myMethod(2);
}


task task3()
{
    myMethod(3);
}


and when i change it to :


Code:
inline void myMethod(int var)
{
...
}

task task1()
{
   myMethod(1);
}

task task2()
{
    myMethod(2);
}


task task3()
{
    myMethod(3);
}


the IDE exit after or during the compilation

Any idea?

Thanks.


Sun Jun 15, 2008 2:22 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.