discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gr_modtool bind makes incorrect file


From: Jameson Collins
Subject: gr_modtool bind makes incorrect file
Date: Thu, 19 Jan 2023 13:03:59 -0500

I am using gnuradio 3.10.2 from conda.  If I make a new module and simply edit its _impl.cc and yaml files then everything works correctly.

If I take the same module, and run `gr_modtool bind` on it then the new binding file will be different and I'll get errors when trying to run.

Here is the code to start with:
```
    py::class_<newmod2, gr::sync_block, gr::block, gr::basic_block,
        std::shared_ptr<newmod2>>(m, "newmod2", D(newmod2))

        .def(py::init(&newmod2::make),
           D(newmod2,make)
        )
```

Here is the code after running `gr_modtool bind`:
```
    py::class_<newmod2,
        std::shared_ptr<newmod2>>(m, "newmod2", D(newmod2))

        .def(py::init(&newmod2::make),
           py::arg("myarg") =  false,
           D(newmod2,make)
        )
```

reply via email to

[Prev in Thread] Current Thread [Next in Thread]