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

Linux assert #11

Open
Cheeseborgers opened this issue Oct 19, 2023 · 0 comments
Open

Linux assert #11

Cheeseborgers opened this issue Oct 19, 2023 · 0 comments

Comments

@Cheeseborgers
Copy link

Cheeseborgers commented Oct 19, 2023

I cant be arsed to PR this so... assert for linux would be better as #ifdef _WIN32 #define DEBUG_BREAK() __debugbreak() #define EXPORT_FN __declspec(dllexport) #elif __linux__ #include <signal.h> #define DEBUG_BREAK() raise(SIGTRAP) #define EXPORT_FN #elif __APPLE__ #define DEBUG_BREAK() __builtin_trap() #define EXPORT_FN #endif as it does not work on all compilers on distros in its current form

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