MSDN > 論壇首頁 > Phoenix > How to get the line No. of the function name by Phoenix?
發問發問
 

一般討論How to get the line No. of the function name by Phoenix?

  • 2009年6月14日 上午 10:19nkparrot 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    I want to get the line No. of the function name using Phoenix, for example, I want to the the line No. of sample_1,

    1  int
    2  sample_1
    3  (int a)
    4  {
    5   int i;
    6   for(i=0;i<100;i++)
    7   {
    8    if( i == a )
    9   {
    10    a = a*i;
    11  }
    12  }
    13    return i;
    14  }

    Yes, I can get the "{"'s line number, but currently I do not how to get the function name's line No.
    Thanks