diff options
Diffstat (limited to 'docs/dev')
| -rw-r--r-- | docs/dev/annotation.md | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/docs/dev/annotation.md b/docs/dev/annotation.md index 80da9ac4..03d676bc 100644 --- a/docs/dev/annotation.md +++ b/docs/dev/annotation.md @@ -447,8 +447,24 @@ Importing a header goes through the same code path as parsing source directly. Y Exporting a header uses the `TypePrinter.print_all_types` api, and outputs a string. ```python ->>> TypePrinter.default.print_all_types(bv.types.items(), bv) -'//------------------------------------------------------------------------------\n// Types for /bin/ls\n//\n// This header file generated by Binary Ninja\n//------------------------------------------------------------------------------\n\n#ifndef BN_TYPE_PARSER\n#include <stdint.h>\n#include <stddef.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <wchar.h>\n\n#define __packed\n#define __noreturn\n#define __convention(name)\n...' +>>> print(TypePrinter.default.print_all_types(bv.types.items(), bv)) +//------------------------------------------------------------------------------ +// Types for /bin/ls +// +// This header file generated by Binary Ninja +//------------------------------------------------------------------------------ + +#ifndef BN_TYPE_PARSER +#include <stdint.h> +#include <stddef.h> +#include <stdlib.h> +#include <stdbool.h> +#include <wchar.h> + +#define __packed +#define __noreturn +#define __convention(name) +... ``` |
