Add notice to not edit generated code

This commit is contained in:
Kovid Goyal
2021-01-09 12:51:41 +05:30
parent eb8e2225e5
commit 8f8be9c2b1
2 changed files with 2 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ last_code = start_code + len(functional_key_names) - 1
def patch_file(path: str, what: str, text: str, start_marker: str = '/* ', end_marker: str = ' */') -> None:
start_q = f'{start_marker}start {what}{end_marker}'
start_q = f'{start_marker}start {what} (auto generated by gen-key-constants.py do not edit){end_marker}'
end_q = f'{start_marker}end {what}{end_marker}'
with open(path, 'r+') as f:

2
glfw/glfw3.h vendored
View File

@@ -342,7 +342,7 @@ extern "C" {
* @{
*/
/* start functional key names */
/* start functional key names (auto generated by gen-key-constants.py do not edit) */
typedef enum {
GLFW_FKEY_FIRST = 0xe000,
GLFW_FKEY_ESCAPE = 0xe000,