Sdk/LuaAPI: Make GetBinding() initialize the binding in case it wasn't initialized

This commit is contained in:
Lynix
2016-10-21 02:12:23 +02:00
parent 6b6608eccc
commit 8f84700628
3 changed files with 19 additions and 21 deletions

View File

@@ -24,7 +24,7 @@ namespace Ndk
LuaAPI() = delete;
~LuaAPI() = delete;
static inline LuaBinding* GetBinding();
static LuaBinding* GetBinding();
static bool Initialize();

View File

@@ -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
{
/*!