(out, js_map, utf8)
| 122 | |
| 123 | |
| 124 | def generate_cc_source(out, js_map, utf8): |
| 125 | out.write( |
| 126 | f"""{_copyright} |
| 127 | |
| 128 | /* AUTO GENERATED - DO NOT EDIT BY HAND */ |
| 129 | |
| 130 | #include <stddef.h> // For NULL. |
| 131 | #include "atoms.h" |
| 132 | |
| 133 | namespace webdriver {{ |
| 134 | namespace atoms {{ |
| 135 | |
| 136 | """ |
| 137 | ) |
| 138 | |
| 139 | for name, file in js_map.items(): |
| 140 | contents = open(file).read() |
| 141 | write_atom_literal(out, name, contents, "cc", utf8) |
| 142 | |
| 143 | out.write(""" |
| 144 | } // namespace atoms |
| 145 | } // namespace webdriver |
| 146 | |
| 147 | """) |
| 148 | |
| 149 | |
| 150 | def generate_java_source(file_name, out, preamble, js_map): |
no test coverage detected