C API: Add nix_value_{inc,dec}ref
- Can be implemented more easily by more eval architectures. - Better types in generated bindings remove some uncertainty and doubt.
This commit is contained in:
@@ -189,6 +189,11 @@ void nix_state_free(EvalState * state);
|
||||
* you're done with a value returned by the evaluator.
|
||||
* @{
|
||||
*/
|
||||
|
||||
// TODO: Deprecate nix_gc_incref in favor of the type-specific reference counting functions?
|
||||
// e.g. nix_value_incref.
|
||||
// It gives implementors more flexibility, and adds safety, so that generated
|
||||
// bindings can be used without fighting the host type system (where applicable).
|
||||
/**
|
||||
* @brief Increment the garbage collector reference counter for the given object.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user