AP_Scripting: add some pointers on how to work with bindings

This commit is contained in:
Peter Barker 2020-01-08 13:26:14 +11:00 committed by WickedShell
parent 2c5e07cb09
commit 4c5c5fff72
2 changed files with 8 additions and 2 deletions

View File

@ -47,3 +47,9 @@ end
return update, 1000 -- request to be rerun again 1000 milliseconds (1 second) from now
```
## Working with bindings
Edit bindings.desc
cd into the generator subdirectory and type `make run`

View File

@ -1724,7 +1724,7 @@ int main(int argc, char **argv) {
error(ERROR_GENERAL, "Unable to open the output source file: %s", file_name);
}
fprintf(source, "// auto generated bindings, don't manually edit\n");
fprintf(source, "// auto generated bindings, don't manually edit. See README.md for details.\n");
trace(TRACE_GENERAL, "Sanity checking parsed input");
@ -1773,7 +1773,7 @@ int main(int argc, char **argv) {
}
free(file_name);
fprintf(header, "#pragma once\n");
fprintf(header, "// auto generated bindings, don't manually edit\n");
fprintf(header, "// auto generated bindings, don't manually edit. See README.md for details.\n");
emit_headers(header);
fprintf(header, "#include \"lua/src/lua.hpp\"\n");
fprintf(header, "#include <new>\n\n");