Skip to content

Commit

Permalink
document DW_FORM_string restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrmaxmeier committed Jun 28, 2024
1 parent be0080a commit d216bd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/write/line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,10 @@ pub struct FileInfo {
/// Optionally some embedded sourcecode.
///
/// Only used if version >= 5 and `LineProgram::file_has_source` is `true`.
///
/// NOTE: This currently only supports the `LineString::String` variant,
/// since we're encoding the string with `DW_FORM_string`.
/// Other variants will result in an `LineStringFormMismatch` error.
pub source: Option<LineString>,
}

Expand Down

0 comments on commit d216bd8

Please sign in to comment.