1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

More extern "C" for FFI

This allows us to catch the header and file getting out of sync, because
we are not doing overloading by mistake.
This commit is contained in:
John Ericson 2025-09-02 01:54:27 -04:00 committed by Jörg Thalheim
parent 1935c19705
commit 7e4608a3f8
11 changed files with 48 additions and 0 deletions

View file

@ -10,6 +10,8 @@
#include "nix/flake/flake.hh"
extern "C" {
nix_flake_settings * nix_flake_settings_new(nix_c_context * context)
{
nix_clear_err(context);
@ -203,3 +205,5 @@ nix_value * nix_locked_flake_get_output_attrs(
}
NIXC_CATCH_ERRS_NULL
}
} // extern "C"