Skip to content

Commit

Permalink
[ruby/yarp] Add deprecated aliases of the form YP_NODE_<name>_NODE
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon authored and matzbot committed Sep 6, 2023
1 parent 6356f6d commit 6408da7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions yarp/templates/include/yarp/ast.h.erb
Expand Up @@ -47,6 +47,12 @@ enum yp_node_type {
YP_SCOPE_NODE
};

// Deprecated aliases
#define YP_NODE_SCOPE_NODE YP_SCOPE_NODE
<%- nodes.each do |node| -%>
#define <%= node.type.sub(/^YP_/, 'YP_NODE_') %> <%= node.type %>
<%- end -%>

typedef uint16_t yp_node_type_t;
typedef uint16_t yp_node_flags_t;

Expand Down

0 comments on commit 6408da7

Please sign in to comment.