🛠️ refactor(source): annotated inlined functions and removed unused include
This commit is contained in:
parent
fafcae34db
commit
779dd40d2e
6 changed files with 6 additions and 2 deletions
|
|
@ -8,6 +8,7 @@ extern "C" {
|
|||
#include <cstdint>
|
||||
|
||||
namespace {
|
||||
// INLINED
|
||||
CPlayerSkillBundle& Bundle(lua_State* state) {
|
||||
return *static_cast<CPlayerSkillBundle*>(lua_touserdata(state, lua_upvalueindex(1)));
|
||||
}
|
||||
|
|
@ -59,6 +60,7 @@ namespace {
|
|||
}
|
||||
}
|
||||
|
||||
// INLINED
|
||||
void RegisterSkillTreeCallbacks(lua_State* state, CPlayerSkillBundle& bundle) {
|
||||
lua_pushlightuserdata(state, &bundle);
|
||||
lua_pushcclosure(state, AddSkill, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue