1
0
Fork 0
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:
José Luis Lafuente 2024-04-15 12:05:57 +02:00
parent 76444a3958
commit 774e7213e8
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A
6 changed files with 19 additions and 62 deletions

View file

@ -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)
}