Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
string_callback.hh
1#pragma once
2#include <string>
3
4namespace nix::testing {
5
6void observe_string_cb(const char * start, unsigned int n, void * user_data);
7
8inline void * observe_string_cb_data(std::string & out)
9{
10 return (void *) &out;
11};
12
13#define OBSERVE_STRING(str) nix::testing::observe_string_cb, nix::testing::observe_string_cb_data(str)
14
15}