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
4
namespace
nix::testing {
5
6
void
observe_string_cb(
const
char
* start,
unsigned
int
n,
void
* user_data);
7
8
inline
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
}
src
libutil-test-support
tests
string_callback.hh
Generated by
1.13.2