mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-15 14:47:18 +02:00
16 lines
368 B
C++
16 lines
368 B
C++
#pragma once
|
|
#include <string>
|
|
|
|
namespace nix::testing {
|
|
|
|
void observe_string_cb(const char * start, unsigned int n, std::string * user_data);
|
|
|
|
inline void * observe_string_cb_data(std::string & out)
|
|
{
|
|
return (void *) &out;
|
|
};
|
|
|
|
#define OBSERVE_STRING(str) \
|
|
(nix_get_string_callback) nix::testing::observe_string_cb, nix::testing::observe_string_cb_data(str)
|
|
|
|
}
|