mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
Allow primops to have Markdown documentation
This commit is contained in:
parent
88d5c9ec58
commit
33b1679d75
6 changed files with 92 additions and 15 deletions
|
@ -30,6 +30,8 @@ struct PrimOp
|
|||
PrimOpFun fun;
|
||||
size_t arity;
|
||||
Symbol name;
|
||||
std::vector<std::string> args;
|
||||
const char * doc = nullptr;
|
||||
};
|
||||
|
||||
|
||||
|
@ -240,6 +242,8 @@ private:
|
|||
Value * addPrimOp(const string & name,
|
||||
size_t arity, PrimOpFun primOp);
|
||||
|
||||
Value * addPrimOp(PrimOp && primOp);
|
||||
|
||||
public:
|
||||
|
||||
Value & getBuiltin(const string & name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue