mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 14:32:42 +01:00
Everything that is a separate subproject should live in the subprojects
directory.
Progress on #2503
This reverts commit 451f8a8c19.
11 lines
257 B
C++
11 lines
257 B
C++
#include "string_callback.hh"
|
|
|
|
namespace nix::testing {
|
|
|
|
void observe_string_cb(const char * start, unsigned int n, void * user_data)
|
|
{
|
|
auto user_data_casted = reinterpret_cast<std::string *>(user_data);
|
|
*user_data_casted = std::string(start);
|
|
}
|
|
|
|
}
|