Commands

The following commands have compiler behavior defined.

tag_all

Applies the selected tag to all objects in the file.

Format

#tag_all <tag_name> "<tag_value>";

Where <tag_name> is the name of the tag to be applied and <tag_value> is the value.

If a tag already exists on an object tag_all will append the value.

Examples

#tag_all versions "1.12";

enum Boolean : u8 {
    YES = 0;
    NO = 1;
}

struct S {
    u8 basic;
}

would be the same as

enum Boolean : u8 {
    YES = 0;
    NO = 1;
} {
    versions = "1.12";
}

struct S {
    u8 basic;
} {
    versions = "1.12";
}
#tag_all "3";

enum Boolean : u8 {
    YES = 0;
    NO = 1;
} {
    versions = "1.12";
}

struct S {
    u8 basic;
} {
    versions = "1.12";
}

would be the same as

enum Boolean : u8 {
    YES = 0;
    NO = 1;
} {
    versions = "1.12 3";
}

struct S {
    u8 basic;
} {
    versions = "1.12 3";
}