Skip to content

Commit

Permalink
fix issues with C++, exceptions and stack objects
Browse files Browse the repository at this point in the history
  * do not throw Lua error across C++ try-catch
  * do not throw Lua error across C++ stack objects
    (fix possible memory leaks)
  * start using C++11 (code throwing C++ exceptions
    is in lambdas)
  • Loading branch information
starius committed Apr 24, 2016
1 parent 713abf1 commit aeb98fb
Show file tree
Hide file tree
Showing 2 changed files with 200 additions and 94 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ before_install:
- sudo pip install cpp-coveralls

install:
- luarocks make CFLAGS="-O0 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage"
- luarocks make CFLAGS="-std=c++0x -O0 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage"

script:
- luacheck `find src -name '*.lua'`
Expand Down
Loading

0 comments on commit aeb98fb

Please sign in to comment.