mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
ircd::js: Swap the flags and arity argument order for trap::function.
This commit is contained in:
parent
f2340367be
commit
a149d56afa
2 changed files with 4 additions and 4 deletions
|
@ -31,8 +31,8 @@ struct trap::function
|
||||||
|
|
||||||
trap *member;
|
trap *member;
|
||||||
const std::string name;
|
const std::string name;
|
||||||
const uint arity;
|
|
||||||
const uint flags;
|
const uint flags;
|
||||||
|
const uint arity;
|
||||||
closure lambda;
|
closure lambda;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -47,8 +47,8 @@ struct trap::function
|
||||||
|
|
||||||
function(trap &,
|
function(trap &,
|
||||||
std::string name,
|
std::string name,
|
||||||
const uint &arity = 0,
|
|
||||||
const uint &flags = 0,
|
const uint &flags = 0,
|
||||||
|
const uint &arity = 0,
|
||||||
const closure & = {});
|
const closure & = {});
|
||||||
|
|
||||||
function(function &&) = delete;
|
function(function &&) = delete;
|
||||||
|
|
|
@ -642,13 +642,13 @@ ircd::js::trap::property::on_set(function::handle,
|
||||||
|
|
||||||
ircd::js::trap::function::function(trap &member,
|
ircd::js::trap::function::function(trap &member,
|
||||||
std::string name,
|
std::string name,
|
||||||
const uint &arity,
|
|
||||||
const uint &flags,
|
const uint &flags,
|
||||||
|
const uint &arity,
|
||||||
const closure &lambda)
|
const closure &lambda)
|
||||||
:member{&member}
|
:member{&member}
|
||||||
,name{std::move(name)}
|
,name{std::move(name)}
|
||||||
,arity{arity}
|
|
||||||
,flags{flags}
|
,flags{flags}
|
||||||
|
,arity{arity}
|
||||||
,lambda{lambda}
|
,lambda{lambda}
|
||||||
{
|
{
|
||||||
member.memfun.emplace(this->name, this);
|
member.memfun.emplace(this->name, this);
|
||||||
|
|
Loading…
Reference in a new issue