Skip to content

Commit

Permalink
v.markused: add tos5 to the whitelist, when C.cJSON_Parse is declared…
Browse files Browse the repository at this point in the history
… (i.e. after `import json`)
  • Loading branch information
spytheman committed Nov 18, 2024
1 parent 4e62b53 commit bb2521e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vlib/v/markused/markused.v
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ pub fn mark_used(mut table ast.Table, mut pref_ pref.Preferences, ast_files []&a
}
}

if 'C.cJSON_Parse' in all_fns {
all_fn_root_names << 'tos5'

}
mut walker := Walker{
table: table
files: ast_files
Expand Down

0 comments on commit bb2521e

Please sign in to comment.