1
This commit is contained in:
parent
7b2031a64e
commit
8b81dc8c0d
@ -564,6 +564,9 @@ bool Ability::HasDecAttr(int attr_id)
|
|||||||
|
|
||||||
void Ability::SetSource(AttrHandle handle, int source_type, std::shared_ptr<std::function<std::string()>> cb)
|
void Ability::SetSource(AttrHandle handle, int source_type, std::shared_ptr<std::function<std::string()>> cb)
|
||||||
{
|
{
|
||||||
|
if (source_type < kAstNone || source_type >= kAstEnd) {
|
||||||
|
A8_ABORT();
|
||||||
|
}
|
||||||
auto p = handle.lock();
|
auto p = handle.lock();
|
||||||
p->source_type = source_type;
|
p->source_type = source_type;
|
||||||
p->get_source = cb;
|
p->get_source = cb;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user