mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-24 06:56:14 +02:00
clean up w LocalNoInline macro
This commit is contained in:
parent
17af7dc326
commit
644567cf7e
1 changed files with 4 additions and 8 deletions
|
@ -619,28 +619,24 @@ std::optional<EvalState::Doc> EvalState::getDoc(Value & v)
|
||||||
// typedef std::optional<const std::map<std::string, Value *>> valmap;
|
// typedef std::optional<const std::map<std::string, Value *>> valmap;
|
||||||
typedef std::map<std::string, Value *> valmap;
|
typedef std::map<std::string, Value *> valmap;
|
||||||
|
|
||||||
static valmap * map0() __attribute__((noinline));
|
LocalNoInline(valmap * map0())
|
||||||
valmap * map0()
|
|
||||||
{
|
{
|
||||||
return new valmap();
|
return new valmap();
|
||||||
}
|
}
|
||||||
|
|
||||||
static valmap * map1(const char *name, Value *v) __attribute__((noinline));
|
LocalNoInline(valmap * map1(const char *name, Value *v))
|
||||||
valmap * map1(const char *name, Value *v)
|
|
||||||
{
|
{
|
||||||
// return new valmap({{name, v}});
|
// return new valmap({{name, v}});
|
||||||
return new valmap({{name, v}});
|
return new valmap({{name, v}});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static valmap * map2(const char *name1, Value *v1, const char *name2, Value *v2) __attribute__((noinline));
|
LocalNoInline(valmap * map2(const char *name1, Value *v1, const char *name2, Value *v2))
|
||||||
valmap * map2(const char *name1, Value *v1, const char *name2, Value *v2)
|
|
||||||
{
|
{
|
||||||
return new valmap({{name1, v1}, {name2, v2}});
|
return new valmap({{name1, v1}, {name2, v2}});
|
||||||
}
|
}
|
||||||
|
|
||||||
static valmap * mapBindings(Bindings *b) __attribute__((noinline));
|
LocalNoInline(valmap * mapBindings(Bindings *b))
|
||||||
valmap * mapBindings(Bindings *b)
|
|
||||||
{
|
{
|
||||||
auto map = new valmap();
|
auto map = new valmap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue