Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lua_error causing exception on Windows #5

Open
leon0017 opened this issue Jan 11, 2025 · 3 comments
Open

lua_error causing exception on Windows #5

leon0017 opened this issue Jan 11, 2025 · 3 comments

Comments

@leon0017
Copy link

leon0017 commented Jan 11, 2025

Is lua_error not implemented yet/correctly or does it have to be used in a special way to not cause an exception? (Happening on Windows, haven't tested on any other platform)

I see it is commented out here, is it mean to function correctly when uncommented?

// state.error("error from java");

@leon0017
Copy link
Author

It's an internal error that causes the JVM to crash

@leon0017
Copy link
Author

Seems to work on linux, windows specific issue

@leon0017 leon0017 changed the title lua_error causing exception lua_error causing exception on Windows Jan 12, 2025
@leon0017
Copy link
Author

Seems to be all the error methods that cause the exception, and they all have a LUA_NORETURN attribute on them, maybe that has to do with this issue?

// luaconf.h
#ifdef _MSC_VER
#define LUA_NORETURN __declspec(noreturn)
#else
#define LUA_NORETURN __attribute__((__noreturn__))
#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant