From: Grzegorz J. <ja...@he...> - 2004-09-09 08:33:00
|
Hi, This should work (not tested, no error handling): void TranslateMemberFunction(Environment* e, Member& m) { int line; Ptree* tmp = e->GetLineNumber(m->GetName(), line); string filename(tmp->ToString()); ... } Let me know if it does not. BR Grzegorz On Thu, 9 Sep 2004, RodZilla wrote: > Hello, > > I've been using OpenC++ for a bit more than a week now > and I have a *really* stupid question : is it possible > in a TranslateMemberFunction method to obtain the name > of the source file (in which the member function is > defined) ? > I looked into the doc, examples and source code and > didn't find anything (but it's likely I missed > something). > > Thanks a lot in advance. > > Best regards, > > Rod. > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Opencxx-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opencxx-users > > ################################################################## # Grzegorz Jakacki Huada Electronic Design # # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # # tel. +86-10-64365577 x2074 Beijing 100015, China # # Copyright (C) 2004 Grzegorz Jakacki, HED. All Rights Reserved. # ################################################################## |