Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FullNameAndVersion to c++ #343

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: version-check
# Fails the release if the release-tag doesn't match the Nunavut version at that tag.
run: |
$(./.github/verify.py -vv --version-check-only "2.3.4.dev0")
$(./.github/verify.py -vv --version-check-only "2.3.5.dev0")
- name: lint
run: tox -e lint
- name: test-nnvg
Expand Down
2 changes: 1 addition & 1 deletion src/nunavut/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
.. autodata:: __version__
"""

__version__ = "2.3.4.dev0"
__version__ = "2.3.5.dev0"
__license__ = "MIT"
__author__ = "OpenCyphal"
__copyright__ = "Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. Copyright (c) 2023 OpenCyphal."
Expand Down
7 changes: 4 additions & 3 deletions src/nunavut/lang/cpp/templates/_composite_type.j2
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ struct {% if composite_type.deprecated -%}
static constexpr bool IsService = false;
static constexpr bool IsRequest = {{ (composite_type == T.request_type) | string | lower }};
static constexpr bool IsResponse = {{ (composite_type == T.response_type) | string | lower }};
{%- else %}
{% else %}
static constexpr bool IsServiceType = false;
{% endif -%}
{%- assert composite_type.extent % 8 == 0 %}
{% endif %}
static constexpr char FullNameAndVersion[] = "{{ composite_type }}";
{% assert composite_type.extent % 8 == 0 %}
{%- assert composite_type.inner_type.extent % 8 == 0 %}
/// Extent is the minimum amount of memory required to hold any serialized representation of any compatible
/// version of the data type; or, on other words, it is the the maximum possible size of received objects of this type.
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ deps =
Pygments
mypy
lxml
types-pkg_resources
types-setuptools
types-PyYAML

commands =
Expand Down
Loading