File tree Expand file tree Collapse file tree 5 files changed +281
-114
lines changed
Expand file tree Collapse file tree 5 files changed +281
-114
lines changed Original file line number Diff line number Diff line change @@ -1253,9 +1253,11 @@ typedef struct ZydisDecodedInstruction_
12531253typedef struct ZydisDecoderContext_
12541254{
12551255 /**
1256- * A pointer to the internal instruction definition.
1256+ * The instruction definition id.
1257+ *
1258+ * Only valid in combination with the instruction encoding.
12571259 */
1258- const void * definition ;
1260+ ZyanU16 definition_id ;
12591261 /**
12601262 * Contains the effective operand-size index.
12611263 *
Original file line number Diff line number Diff line change @@ -193,6 +193,9 @@ typedef struct ZydisDecoderTreeNode_
193193 ZydisDecoderTreeNodeValue value ;
194194} ZydisDecoderTreeNode ;
195195
196+ // See `ZydisDecoderContext.instruction_id`
197+ ZYAN_STATIC_ASSERT (sizeof (ZydisDecoderTreeNodeValue ) == sizeof (ZyanU16 ));
198+
196199/* ---------------------------------------------------------------------------------------------- */
197200
198201#pragma pack(pop)
You can’t perform that action at this time.
0 commit comments