Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/ldc/attributes.d
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,21 @@ struct section {
struct target {
string specifier;
}

/**
* When applied to a function and building for Win32, creates a SAFESEH
* entry in the binary, so that the function is considered safe to be called
* as an exception handler.
*
* Examples:
* ---
* import ldc.attributes;
*
* @safeseh() extern(C) int myExceptionHandler(void*, void*, void*, void*)
* {
* return ExceptionContinueSearch;
* }
* ---
*/
struct safeseh {
};
Loading