AnnotatePrototype object is used to create an annotation for a function prototype.
Annotations
AnnotatePrototype
The
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
AnnotatePrototype object is used to create an annotation for a function prototype.
| Field | Description | Type |
|---|---|---|
index | Index defining the order in which functions are displayed | number |
location | Address to annotate | AddressValue |
prototype | Function prototype | string |
evidence = {
functions = {
-- Shorthand: annotate current function with a prototype
[context.address] = {
annotate:prototype "int read_argument(char *argument)",
},
-- Explicit table form with optional location and index
[some_other_function.address] = {
annotate:prototype {
prototype = "uint64_t hash(const uint8_t *buf, size_t len)",
location = some_other_function.address,
index = 1,
},
},
},
}