mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
C API: add tests for external values
This commit is contained in:
parent
2349185c96
commit
7c602d9f01
5 changed files with 100 additions and 17 deletions
|
@ -20,21 +20,6 @@
|
|||
#include "gc_cpp.h"
|
||||
#endif
|
||||
|
||||
struct nix_string_return
|
||||
{
|
||||
std::string str;
|
||||
};
|
||||
|
||||
struct nix_printer
|
||||
{
|
||||
std::ostream & s;
|
||||
};
|
||||
|
||||
struct nix_string_context
|
||||
{
|
||||
nix::NixStringContext & ctx;
|
||||
};
|
||||
|
||||
void nix_set_string_return(nix_string_return * str, const char * c)
|
||||
{
|
||||
str->str = c;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue