bool LuaState::Load(const String& code) { if (luaL_loadstring(m_state, code.GetConstBuffer()) != 0) { m_lastError = lua_tostring(m_state, -1); lua_pop(m_state, 1); return false; } return true; }
void LuaState::SetField(const String& name, int tableIndex) const { lua_setfield(m_state, tableIndex, name.GetConstBuffer()); }
void LuaState::PushString(const String& str) const { lua_pushlstring(m_state, str.GetConstBuffer(), str.GetSize()); }
void LuaState::PushMetatable(const String& str) const { luaL_getmetatable(m_state, str.GetConstBuffer()); }
bool LuaState::NewMetatable(const String& str) { return luaL_newmetatable(m_state, str.GetConstBuffer()) != 0; }
bool LuaState::IsOfType(int index, const String& tname) const { return IsOfType(index, tname.GetConstBuffer()); }
LuaType LuaState::GetGlobal(const String& name) const { return FromLuaType(lua_getglobal(m_state, name.GetConstBuffer())); }
int GetAddressInfo(const String& hostname, const String& service, const addrinfoImpl* hints, addrinfoImpl** results) { return getaddrinfo(hostname.GetConstBuffer(), service.GetConstBuffer(), hints, results); }
void LuaState::Error(const String& message) const { luaL_error(m_state, message.GetConstBuffer()); }
LuaType LuaState::GetField(const String& fieldName, int tableIndex) const { return FromLuaType(lua_getfield(m_state, tableIndex, fieldName.GetConstBuffer())); }
void LuaState::CheckStack(int space, const String& error) const { CheckStack(space, error.GetConstBuffer()); }
int LuaState::ArgError(unsigned int argNum, const String& error) const { return luaL_argerror(m_state, argNum, error.GetConstBuffer()); }
void LuaState::ArgCheck(bool condition, unsigned int argNum, const String& error) const { luaL_argcheck(m_state, condition, argNum, error.GetConstBuffer()); }
void LuaState::SetGlobal(const String& name) { lua_setglobal(m_state, name.GetConstBuffer()); }
LuaType LuaState::GetMetatable(const String& tname) const { return FromLuaType(luaL_getmetatable(m_state, tname.GetConstBuffer())); }
void LuaState::SetMetatable(const String& tname) const { luaL_setmetatable(m_state, tname.GetConstBuffer()); }
OpenALFunc OpenAL::GetEntry(const String& entryPoint) { return LoadEntry(entryPoint.GetConstBuffer(), false); }