-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Your Name
committed
Jul 29, 2024
1 parent
0b834e8
commit 5df6aab
Showing
6 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "signals.h" | ||
|
||
void signal_sethandler( | ||
const int signal, | ||
SIGNAL_HANDLER_RETURN (*handler)(SIGNAL_HANDLER_ARGS) | ||
) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#if !defined(SIGNALS_H) | ||
#define SIGNALS_H | ||
|
||
#if defined(_WIN32) | ||
#define SIGNAL_HANDLER_RETURN int | ||
#define SIGNAL_HANDLER_ARGS int value, int subcode | ||
#define SIGNAL_HANDLER_END return 0; | ||
#else | ||
#define SIGNAL_HANDLER_RETURN void | ||
#define SIGNAL_HANDLER_ARGS | ||
#define SIGNAL_HANDLER_END | ||
#endif | ||
|
||
#endif |