From: Grzegorz J. <ja...@ac...> - 2004-10-18 13:12:02
|
Marc Waeckerlin wrote: [...] > I got a solution, even though it is not the best: > > Before I trace anything, I check the filename and I don't > trace, if I am either in a file with absolute (not > relative) pathname or if i am in the tracer declaration: > > int line; > Opencxx::Ptree* fname > (env->GetLineNumber > (Opencxx::PtreeUtil::First(body), line)); > if (std::string(fname->ToString()).find('/')==0 || > std::string(fname->ToString())=="fntrace.hxx") > return false; > > Any idea for a better solution? This one seems fine. BR Grzegorz PS: You mentioned some problems with metaclass not being recognized despite -S option. Do you still have them? If so, could you post a minimal example? > > Ok, to make it Windoze compatible, the "find" should > probably be changed to: find_first_of("/\\") and "fname" > could be instanciated as std::string instead of converting > it twice, but besides of minor enhancement, is there a > better, totally different approach? > > Regards > Marc > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Opencxx-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opencxx-users |