diff options
author | Terry May <terrydmay@gmail.com> | 2019-09-09 19:45:41 -0400 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2020-02-18 22:04:15 -0800 |
commit | 64ee803068269fe3b9563fd415c420fb513a1c9b (patch) | |
tree | d27e9b5560b5bb4377f964e39772cd1395a7bff0 /grc/core/blocks/_build.py | |
parent | 012870af22ae873b3b998691de8e81752179d266 (diff) |
grc: Fix C++ code generation
- Added support for C++ std::map<> from python dict
- Fixed default initialization of parameters in main()
- Added missing include for realtime scheduling
- Added default CMake option for std=c++11 as this is required for
gnuradio >= 3.8
- Fixed mako template to add initialization to parameter declarations in
main()
- Fixed C++ constructor initialization list generation
- Fixed parameter type determination when an lvalue is used in an rvalue
expression
- Improved determining type of C++ variables
- Added C++ support for gr_complex parameters
- Fixed C++ generation of nested container types
- Added C++ support for virtual source/sink
- Moved cmake CMAKE_CXX_STANDARD 11 option from options.yml to
CMakeLists.txt.mako
- Fixed qtqui_sink to allow multiple instances
- Revised virtual connection processing in cpp_top_block.py
Reviewed-By: HÃ¥kon Vagsether <hauk142@gmail.com>
Diffstat (limited to 'grc/core/blocks/_build.py')
-rw-r--r-- | grc/core/blocks/_build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/core/blocks/_build.py b/grc/core/blocks/_build.py index f8406f9d6b..151fa3274f 100644 --- a/grc/core/blocks/_build.py +++ b/grc/core/blocks/_build.py @@ -53,7 +53,7 @@ def build(id, label='', category='', flags='', documentation='', cpp_templates = cpp_templates or {} cls.cpp_templates = MakoTemplates( - includes=cpp_templates.get('includes', ''), + includes=cpp_templates.get('includes', []), make=cpp_templates.get('make', ''), callbacks=cpp_templates.get('callbacks', []), var_make=cpp_templates.get('var_make', ''), |