Skip to content

Commit

Permalink
capstone.h: document that for instruction or when detail mode is OFF,…
Browse files Browse the repository at this point in the history
… the detail pointer is irrelevant, regardless of its value
  • Loading branch information
aquynh committed Oct 12, 2014
1 parent 1a83cea commit 2c8b262
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/capstone.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,9 @@ typedef struct cs_insn {
// NOTE: detail pointer is only valid when both requirements below are met:
// (1) CS_OP_DETAIL = CS_OPT_ON
// (2) Engine is not in Skipdata mode (CS_OP_SKIPDATA option set to CS_OPT_ON)
// Note: when in Skipdata mode, even if this pointer is not NULL,
// its content is irrelevant.
//
// NOTE 2: when in Skipdata mode, or when detail mode is OFF, even if this pointer
// is not NULL, its content is still irrelevant.
cs_detail *detail;
} cs_insn;

Expand Down

0 comments on commit 2c8b262

Please sign in to comment.