mirror of
https://github.com/NixOS/nix
synced 2025-06-26 07:31:15 +02:00
C API: update docs based on PR feedback
This commit is contained in:
parent
7c602d9f01
commit
c49b88b066
7 changed files with 18 additions and 12 deletions
|
@ -269,6 +269,11 @@ const char * nix_get_attr_name_byidx(nix_c_context * context, const Value * valu
|
|||
|
||||
/**@}*/
|
||||
/** @name Initializers
|
||||
*
|
||||
* Values are typically "returned" by initializing already allocated memory that serves as the return value.
|
||||
* For this reason, the construction of values is not tied their allocation.
|
||||
* Nix is a language with immutable values. Respect this property by only initializing Values once; and only initialize
|
||||
* Values that are meant to be initialized by you. Failing to adhere to these rules may lead to undefined behavior.
|
||||
*/
|
||||
/**@{*/
|
||||
/** @brief Set boolean value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue