Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: lesnewell on March 02, 2007, 05:05:51 pm

Title: wxSmith custom class bug
Post by: lesnewell on March 02, 2007, 05:05:51 pm
If you define a custom class and use an underscore in the creating code box they get converted to & when you save/load. For instance:
$(THIS) = new $(CLASS)($(PARENT),$(ID),0,-M_PI,M_PI,&unitAngular);
becomes
$(THIS) = new $(CLASS)($(PARENT),$(ID),0,-M&PI,M&PI,&unitAngular);
Title: Re: wxSmith custom class bug
Post by: byo on March 02, 2007, 06:49:18 pm
Try changing to proper value, save and see if it loads correctly then.

I've updated string-handling inside XRC files recently to be equal to the one inside XRC files. Unfortunately this introduced some small incompatibility when '_' and few othre characters are used.

Sorry for inconvenience

 BYO
Title: Re: wxSmith custom class bug
Post by: lesnewell on March 02, 2007, 11:06:34 pm
Yup - Fixed. Thanks for your great work :D