Skip to content

Commit

Permalink
unique macro name
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Nov 22, 2018
1 parent 435dd41 commit be891f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rosidl_generator_cpp/resource/msg__struct.hpp.em
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ for member in message.structure.members:

@{
deprecated_macro_name = \
'__'.join(['DEPRECATED', package_name] + list(interface_path.parents[0].parts) + [interface_path.stem])
'__'.join(['DEPRECATED', package_name] + list(interface_path.parents[0].parts) + [message.structure.type.name])
}@
#ifndef _WIN32
# define @(deprecated_macro_name) __attribute__((deprecated))
Expand Down

0 comments on commit be891f1

Please sign in to comment.