summaryrefslogtreecommitdiff
path: root/src/util/assert_safe.h
Commit message (Collapse)AuthorAgeFilesLines
* assert: add `ASSERT_WITH_CLEANUP`Edward Thomson2022-02-271-0/+16
| | | | | | Now that we safely assert and return, we may need to be in a place where we need to unlock mutexes or cleanup resources. Provide `ASSERT_WITH_CLEANUP` that permits for this behavior by taking a block.
* refactor: make util an object libraryEdward Thomson2022-02-221-0/+58
Instead of simply including the utility files directly, make them a cmake object library for easy reusability between other projects within libgit2. Now the top-level `src` is responsible for platform selection, while the next-level `libgit2` and `util` configurations are responsible for identifying what objects they include.