Changing Existing Custom Blocks Argument List

Hello all,

I created a C++ block using gr_modtool in which I declared one variable
in
the argument list initially. I now want to update this block to take
more
arguments. What is the recommended way of going about this?

My current flow in this situation is to start over. Make a new block
with
gr_modtool and copy paste the existing code into the new block files
with
updates to the arguments. This is error prone.

How do you experienced developers handle this?

v/r,
Rich

Just add the new variable to each file:

/lib/coolblock_xx_impl.cc (3 places, make, new and constructor)
/lib/coolblock_xx_impl.h (1 place, constructor)
/include/project/coolblock_xx.h (1 place, make)
/grc/project_coolblock_xx.xml (1 place, )

Super important step! Delete your entire build directory with rm -rf *
and do a clean cmake before you rebuild.

Ron