Skip to content

Commit

Permalink
mx_mysql: Use standard assert()
Browse files Browse the repository at this point in the history
Currently, `mx_mysql` uses its own assert macros, which log the failed
condition and then return an error value to the caller (via return
status and via errno).

This commit changes the approach to use the standard `assert()` to abort
right away in case of failures, as all `assert()` failures are serious
coding errors. This simplifies the coding for the callers.
  • Loading branch information
donald committed Dec 29, 2023
1 parent 2302d0b commit 6cb0401
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 114 deletions.
Loading

0 comments on commit 6cb0401

Please sign in to comment.