User forums > Using Code::Blocks
Does C::B provides a facility to quickly add any function ?
(1/1)
eranon:
Hello. Is there a tool (maybe a built-in one, but I don't find where) or plugin to quickly add a function/method of any type (public/protected/private, static, virtual) ? I mean avoiding to add it manually, by hand writing in the h/cpp pair file ? Well, taking a concrete example, how to easily add a static protected function, in C::B, to the app class ?
MortenMacFly:
--- Quote from: eanon on May 23, 2012, 03:14:31 pm ---how to easily add a static protected function, in C::B, to the app class ?
--- End quote ---
The quickest way:
- Add the method declaration to the header file
- Select "switch header/source"
- Goto the place where you'd like to add the implementation,
- Select "insert all class methods w/o implementation"
- Done.
eranon:
OK, I didn't thought about this "insert all class methods w/o implementation" command in context menu : nice :) Thanks Morten
Navigation
[0] Message Index
Go to full version