Sdk/LuaAPI: Make GetBinding() initialize the binding in case it wasn't initialized
This commit is contained in:
@@ -24,7 +24,7 @@ namespace Ndk
|
||||
LuaAPI() = delete;
|
||||
~LuaAPI() = delete;
|
||||
|
||||
static inline LuaBinding* GetBinding();
|
||||
static LuaBinding* GetBinding();
|
||||
|
||||
static bool Initialize();
|
||||
|
||||
|
||||
@@ -24,19 +24,6 @@
|
||||
#include <NDK/Console.hpp>
|
||||
#endif
|
||||
|
||||
namespace Ndk
|
||||
{
|
||||
/*!
|
||||
* \brief Gets the internal binding for Lua
|
||||
* \return A pointer to the binding
|
||||
*/
|
||||
|
||||
inline LuaBinding* LuaAPI::GetBinding()
|
||||
{
|
||||
return s_binding;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user