Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
wxSmith : add option for Create function in inhereited cases
ollydbg:
--- Quote from: LR83 on March 28, 2026, 02:57:59 pm ---Is my proposition posted above on January 24, 2026 work for everybody and could be added on next release ?
--- End quote ---
So, you want an option to enable/disable the usage of "Create" function? Sorry I'm still not quite understand your idea, and I'm not quite familiar with wxSmith's source code.
I just copy your code in the attachment to the local code repo, and I see it does not change much. And can you modify your code to a patch file, which is against the last code base?
I hope some devs who are more familiar with wxSmith will review your patch file.
LR83:
Yes, the change is very slight and does not disrupt normal behavior.
We now just have a new option to call or not the Create() function (the default value is true in order to keep the old generation code).
I introduced this because when you call the parent in the constructor, you should not use the Create() function.
I don't know how to create a "patch file". Do I need a special environment?
ollydbg:
--- Quote from: LR83 on March 29, 2026, 09:20:07 am ---I don't know how to create a "patch file". Do I need a special environment?
--- End quote ---
Well. A patch file or a diff file can be obtained by some version control tool. For example, svn or git. For C::B source, it has svn code repo, and git code mirrors. You can fetch the code from svn code repo or clone the code from git repo, and make some modification to the source code, and later generate patch file.
LR83:
Ok, I try with my Github with the C::B mirror: codeblocks_sfmirror
You can see the diff in this page : https://github.com/GitHubLionel/codeblocks_sfmirror/commit/9307e9b2852532796914b218042194578831f59b
Navigation
[0] Message Index
[*] Previous page
Go to full version