LuaFeatureMacro
| 683 | |
| 684 | // LuaFeatureMacro |
| 685 | int LuaCommand::LuaRegister(lua_State *L) |
| 686 | { |
| 687 | static std::mutex mutex; |
| 688 | auto command = std::make_unique<LuaCommand>(L); |
| 689 | { |
| 690 | std::lock_guard<std::mutex> lock(mutex); |
| 691 | cmd::reg(std::move(command)); |
| 692 | } |
| 693 | return 0; |
| 694 | } |
| 695 | |
| 696 | LuaCommand::LuaCommand(lua_State *L) |
| 697 | : LuaFeature(L) |