mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Restructure devtest's unittests and run them in CI (#11859)
This commit is contained in:
@@ -125,6 +125,15 @@ protected:
|
||||
friend class ModApiEnvMod;
|
||||
friend class LuaVoxelManip;
|
||||
|
||||
/*
|
||||
Subtle edge case with coroutines: If for whatever reason you have a
|
||||
method in a subclass that's called from existing lua_CFunction
|
||||
(any of the l_*.cpp files) then make it static and take the lua_State*
|
||||
as an argument. This is REQUIRED because getStack() will not return the
|
||||
correct state if called inside coroutines.
|
||||
|
||||
Also note that src/script/common/ is the better place for such helpers.
|
||||
*/
|
||||
lua_State* getStack()
|
||||
{ return m_luastack; }
|
||||
|
||||
|
Reference in New Issue
Block a user