Skip to content

Commit

Permalink
fix a lambda call.
Browse files Browse the repository at this point in the history
  • Loading branch information
Terushi Arakawa committed Nov 13, 2012
1 parent 978f71c commit c63a84a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Project/osx/.gitignore
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,5 @@
.objs/
ext/
*.o
*.a
gptest
3 changes: 2 additions & 1 deletion Src/Stream/StreamConnectionImplLua.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void StreamConnectionImpl::initializeAsyncThreadMethod(const wstring& account_id


void StreamConnectionImpl::update(const wstring& account_id) void StreamConnectionImpl::update(const wstring& account_id)
{ {
LuaScript<bool(string)> lua_script("LuaScript/StreamLoopUpdate.lua", "streamLoopUpdate", [](lua_State* lua_state) LuaScript<bool(string)> lua_script("LuaScript/StreamLoopUpdate.lua", "streamLoopUpdate", [this](lua_State* lua_state)
{ {
Connection::bindToScript(lua_state); Connection::bindToScript(lua_state);
HttpResponse::bindToScript(lua_state); HttpResponse::bindToScript(lua_state);
Expand All @@ -83,6 +83,7 @@ void StreamConnectionImpl::update(const wstring& account_id)
PostParser::bindToScript(lua_state); PostParser::bindToScript(lua_state);
CommentParser::bindToScript(lua_state); CommentParser::bindToScript(lua_state);
JsonObject::bindToScript(lua_state); JsonObject::bindToScript(lua_state);
bindToScript(lua_state);
}); });


while(!is_cancellation_pending_) while(!is_cancellation_pending_)
Expand Down

0 comments on commit c63a84a

Please sign in to comment.