适配接口
This commit is contained in:
@@ -47,7 +47,7 @@ void module::local_storage::regist(sol::state* lua)
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void module::local_storage::regist_global(const std::string& name, sol::state* lua)
|
void module::local_storage::regist_global(const char* name, sol::state* lua)
|
||||||
{
|
{
|
||||||
lua->registry()[name] = this;
|
lua->registry()[name] = this;
|
||||||
(*lua)[name] = this;
|
(*lua)[name] = this;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace module
|
|||||||
static void regist(sol::state* lua);
|
static void regist(sol::state* lua);
|
||||||
private:
|
private:
|
||||||
// 通过 imodule 继承
|
// 通过 imodule 继承
|
||||||
virtual void regist_global(const std::string& name, sol::state* lua);
|
virtual void regist_global(const char* name, sol::state* lua);
|
||||||
virtual void delete_global() { delete this; }
|
virtual void delete_global() { delete this; }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user