mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
Use C++11 [[noreturn]] attribute.
This commit is contained in:
parent
7191dd16f9
commit
60478a8e3a
3 changed files with 5 additions and 8 deletions
|
@ -138,13 +138,10 @@ extern Tcl_Obj *Tcl_ObjSetVar2(Tcl_Interp *interp, Tcl_Obj *part1Ptr, Tcl_Obj *p
|
|||
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
# define YS_ATTRIBUTE(...) __attribute__((__VA_ARGS__))
|
||||
# define YS_NORETURN
|
||||
#elif defined(_MSC_VER)
|
||||
# define YS_ATTRIBUTE(...)
|
||||
# define YS_NORETURN __declspec(noreturn)
|
||||
#else
|
||||
# define YS_ATTRIBUTE(...)
|
||||
# define YS_NORETURN
|
||||
#endif
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue