IDA SDK

- Main Page
- Header Files
- Classes
- Modules

Macros
Option value types

## Detailed Description

Passed as 'value_type' parameter to set_options_t callbacks.

## Macros
#define | IDPOPT_STR 1
| string constant (char *)
#define | IDPOPT_NUM 2
| number (uval_t *)
#define | IDPOPT_BIT 3
| bit, yes/no (int *)
#define | IDPOPT_I64 5
| 64bit number (int64 *)
#define | IDPOPT_CST 6
| lexer (lexer_t*) More...

## Macro Definition Documentation

#define IDPOPT_CST 6

lexer (lexer_t*)

Custom type, starting with a '{' Values of this type should be handled by set_options_t callbacks. E.g.,:

1 < ERROR_STRINGS =
2 < {
3 < {0, "Unknown error"},
4 < {1, "Missing filename"},
5 < {5, "Out-of-memory"}
6 < }
7 <

For values of this type, the data that will be passed as the callback's 'value' parameter is the lexer instance that is being used to parse the configuration file. You can use parse_json() (see parsejson.hpp) to parse JSON-format data NB: the '{' is already consumed by the parser, so you need to push it again if it's a part of the JSON object