Skip to content

Commit

Permalink
allow c_header annotations on datatypes
Browse files Browse the repository at this point in the history
  • Loading branch information
ffleurey committed Jul 16, 2021
1 parent cfb939e commit 2c513c5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ public class AnnotationRegistry {

//@c_header
final String cheader_name = "c_header";
final String cheader_desc = "Adds a header (.h) to the generated code for this Thing.";
final EClass cheader_scope[] = {ThingMLPackage.eINSTANCE.getThing()};
final String cheader_desc = "Adds a header (.h) to the generated code for this Type.";
final EClass cheader_scope[] = {ThingMLPackage.eINSTANCE.getType()};
final Annotation cheader_annotation = new Annotation(cheader_name, cheader_desc, cheader_scope);
annotations.put(cheader_name, cheader_annotation);

Expand Down

0 comments on commit 2c513c5

Please sign in to comment.