mirror of
https://github.com/NixOS/nix
synced 2025-07-09 16:13:54 +02:00
C API: Use nix_get_string_callback
typedef
This commit is contained in:
parent
76444a3958
commit
774e7213e8
6 changed files with 19 additions and 62 deletions
|
@ -11,7 +11,6 @@ inline void * observe_string_cb_data(std::string & out)
|
|||
};
|
||||
|
||||
#define OBSERVE_STRING(str) \
|
||||
(void (*)(const char *, unsigned int, void *)) nix::testing::observe_string_cb, \
|
||||
nix::testing::observe_string_cb_data(str)
|
||||
(nix_get_string_callback) nix::testing::observe_string_cb, nix::testing::observe_string_cb_data(str)
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue