summaryrefslogtreecommitdiff
path: root/test/testHelpers.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-06-04 18:01:10 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-06-04 18:01:10 +0100
commit2c87aa33dfde23920d1dccd04c472c8884118b90 (patch)
treea90075a27f8490d440957526bf05c9dd6121bc0a /test/testHelpers.cpp
parentAssign an id to the root project (diff)
downloadilt-2c87aa33dfde23920d1dccd04c472c8884118b90.tar.bz2
ilt-2c87aa33dfde23920d1dccd04c472c8884118b90.tar.xz
ilt-2c87aa33dfde23920d1dccd04c472c8884118b90.zip
Replace messy uasprintf with std::format
Diffstat (limited to 'test/testHelpers.cpp')
-rw-r--r--test/testHelpers.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/testHelpers.cpp b/test/testHelpers.cpp
deleted file mode 100644
index c69e5f3..0000000
--- a/test/testHelpers.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "testHelpers.h"
-#include <cstdarg>
-
-std::unique_ptr<char, decltype(&free)>
-uasprintf(const char * fmt, ...)
-{
- char * buf {};
- va_list args;
- va_start(args, fmt);
- if (vasprintf(&buf, fmt, args) < 0) {
- va_end(args);
- return {nullptr, &free};
- }
- va_end(args);
- return std::unique_ptr<char, decltype(&free)> {buf, &free};
-}