<name=“xxx”> Special Attributes behave inconsistently between templates and scripts, where the struct array name and the struct name in the array are the values specified by name, while in the script, only the struct names in the array are the values specified by name
//Code in Template
typedef struct {} bb<name="GG">;//如果用bb来声明结构体变量,那么默认变量名为GG,如果声明数组,那么数组中的每个结构体名默认为GG
bb rr[3]<name="KK">;//在Script里面结构体数组名字为rr,每一个结构体名字为KK,在Template里面数组和每一个结构名字均为KK
bb tt[3];//在Script里面结构体数组名字为tt,每一个结构体名字为GG,在Template里面数组和每一个结构名字均为GG
bb hh;//结构体名字为GG
bb ll<name="PP">;//结构体名字为PP
Result: