Skip to content

confusing parse return value #67

Description

@hyansuper

mjson_get_XXX(...) return 0 or -1 for "not found", I suggest all use -1.
or better, return true on "found" and false on "not found", so these parser function can be used in if(...)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions