Tomasu / LuaGlue

C++11 Lua 5.2 Binding Library
zlib License
79 stars 22 forks source link

should we switch to lua_pcall to prevent crash when call inexistent in c++ #37

Closed guanlisheng closed 10 years ago

guanlisheng commented 10 years ago

take the given shared_ptr.lua for instance, if we remove or rename test_ptr, the program will crash and we can't catch any exception at all.

Tomasu commented 10 years ago

I'll have to look into it. Either always use pcall, or provide an option.