1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# vim: ft=sh: memcheck() { valgrind --track-fds=yes --leak-check=full --track-origins=yes "$@" } massif() { valgrind --tool=massif "$@" } mbuild() { if [ ! -d "build" ]; then meson setup build fi meson compile -C build "$@" }