Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed May 26, 2024
1 parent b66b744 commit 2bb8e69
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/type.h
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,15 @@ struct module {
const uint8_t *bin;

#if defined(TOYWASM_ENABLE_WASM_NAME_SECTION)
/*
* Unlike other sections, we don't parse the name section
* when loading a module. Thus, a broken name section is not a
* validation error.
*
* We provide some APIs (name.h) for embedders who want to use
* the names in the section. We expect it's done only when
* necessary. eg. When printing traces for debugging purposes.
*/
const uint8_t *name_section_start;
const uint8_t *name_section_end;
#endif
Expand Down

0 comments on commit 2bb8e69

Please sign in to comment.