Skip to content

Commit

Permalink
Correct documentation regarding error return values
Browse files Browse the repository at this point in the history
The error return values are documented as `TINYOBJ_ERR_***`, when they are in fact `TINYOBJ_ERROR_***`.
  • Loading branch information
JontyNewman authored Jan 13, 2024
1 parent f17c128 commit 78cab0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tinyobj_loader_c.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ typedef void (*file_reader_callback)(void *ctx, const char *filename, int is_mtl
* @param[in] flags combination of TINYOBJ_FLAG_***
*
* Returns TINYOBJ_SUCCESS if things goes well.
* Returns TINYOBJ_ERR_*** when there is an error.
* Returns TINYOBJ_ERROR_*** when there is an error.
*/
extern int tinyobj_parse_obj(tinyobj_attrib_t *attrib, tinyobj_shape_t **shapes,
size_t *num_shapes, tinyobj_material_t **materials,
Expand All @@ -134,7 +134,7 @@ extern int tinyobj_parse_obj(tinyobj_attrib_t *attrib, tinyobj_shape_t **shapes,
* @param[in[ ctx Context pointer passed to the file_reader callack.
* Returns TINYOBJ_SUCCESS if things goes well.
* Returns TINYOBJ_ERR_*** when there is an error.
* Returns TINYOBJ_ERROR_*** when there is an error.
*/
extern int tinyobj_parse_mtl_file(tinyobj_material_t **materials_out,
size_t *num_materials_out,
Expand Down

0 comments on commit 78cab0a

Please sign in to comment.