Skip to content

Commit 2c513c5

Browse files
committed
allow c_header annotations on datatypes
1 parent cfb939e commit 2c513c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

language/thingml/src/org/thingml/annotations/AnnotationRegistry.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ public class AnnotationRegistry {
160160

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

0 commit comments

Comments
 (0)