MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / LuaRegister

Method LuaRegister

src/auto4_lua.cpp:685–694  ·  view source on GitHub ↗

LuaFeatureMacro

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

regFunction · 0.85

Tested by

no test coverage detected