Comments (6)
It's very strange as of c++ standard, the catch clauses are executed in order and will only fallback if not matching. We are throwing a luabridge::LuaException
which is inherited from std::exception
, so the first catch should kick in but it is somehow swallowed by the catch (...)
for some reason i cannot explain.
I've experienced this on Xcode, which platform and compiler are you using ?
from luabridge3.
Are you using the flag -fprofile-arcs
? found this old thread
https://stackoverflow.com/questions/9919500/catch-swallowing-all-other-catches-in-xcode-llvm-3-0
from luabridge3.
I've pushed 9c853df which should mitigate the issue while i figure it out
from luabridge3.
Tested with Linux (GNU 11.2.0), Windows (MSVC 19.30) and Mac (Xcode 13.4.1).
Same error.
Not using -fprofile-arcs flag.
from luabridge3.
Can you test again against master?
from luabridge3.
Can you test again against master?
Tested and fixed.
Thanks!
from luabridge3.
Related Issues (20)
- addConstructorFrom with callable args missing HOT 3
- error converting void func( const char **xs ); HOT 11
- String property that accepts numbers HOT 1
- Error when trying to print metatable HOT 1
- Allow to add metamethods from Lua HOT 7
- Fails to build with clang 16 and libc++ HOT 1
- void* problem when addConstructor and addFunction HOT 5
- `LuaRef::isInstance()` fails on const references HOT 9
- TypeResult<T> does not expose valueOr() convenience method HOT 1
- `makeUnexpected()` in `Set.h` causes compilation errors HOT 2
- std::map<std::string, std::string> in lua HOT 3
- Namespace registration fails on assert when split across separate calls HOT 1
- C++ functions that take null pointer arguments HOT 2
- Lua error crashes host with CFunction but not typed function. HOT 22
- Recent LB3 Change Causes my code not to compile. HOT 2
- Linker error when building project submodules: /usr/bin/ld: cannot find -lreadline HOT 2
- Compiler error use of deleted function luabridge::TypeResult<T>::TypeResult(...) HOT 6
- Enhancement Request: Custom error function for `lua_pcall`. HOT 11
- Error C3861 (using with Luau) HOT 3
- Can I cast types inside Lua? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luabridge3.