mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 00:56:15 +02:00
a512f4eebc
Makes string callback easier to pass, without mistakes.
9 lines
185 B
C++
9 lines
185 B
C++
#include "string_callback.hh"
|
|
|
|
namespace nix::testing {
|
|
|
|
void observe_string_cb(const char * start, unsigned int n, std::string * user_data) {
|
|
*user_data = std::string(start);
|
|
}
|
|
|
|
}
|