| 29 | this.report(`#define gxCharSet_${name} C_NULL`); |
| 30 | } |
| 31 | reportNames(names) { |
| 32 | let c = names.length; |
| 33 | this.report(`#define mxCharSet_String_Property ${c}`); |
| 34 | this.report(`static const txCharSetUnicodeStringProperty ICACHE_RODATA_ATTR gxCharSet_String_Property[mxCharSet_String_Property] = {`); |
| 35 | for (let i = 0; i < c; i++) { |
| 36 | let name = names[i]; |
| 37 | this.report(`\t{ "${name}", mxCharSet_${name}, gxCharSet_${name}, mxStrings_${name}, gxStrings_${name} },`); |
| 38 | } |
| 39 | this.report("};"); |
| 40 | } |
| 41 | reportStrings(name, strings) { |
| 42 | let c = strings.length; |
| 43 | this.report(`#define mxStrings_${name} ${c}`); |