Skip to content

Commit

Permalink
docs: fixup description of builtins.importNative
Browse files Browse the repository at this point in the history
Follow up documentation fix.
  • Loading branch information
Mic92 committed May 31, 2024
1 parent ef5c846 commit 02a5fea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libexpr/eval-settings.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ struct EvalSettings : Config
Enable built-in functions that allow executing native code.
In particular, this adds:
- `builtins.importNative` *path*
Load a dynamic shared object (DSO) at *path* which exposes a function pointer to a procedure that initialises a Nix language value, and return that value.
- `builtins.importNative` *path* *symbol*
Runs function with *symbol* from a dynamic shared object (DSO) at *path*.
This may be used to add new builtins to the Nix language.
The procedure must have the following signature:
```cpp
extern "C" typedef void (*ValueInitialiser) (EvalState & state, Value & v);
Expand Down

0 comments on commit 02a5fea

Please sign in to comment.