Improve code quality for alloc_size (#196)
* Improve code quality for alloc_size * Made error noreturn. * Update docs. * Move annoation
This commit is contained in:
committed by
GitHub
parent
fbbc2ddb76
commit
87dfd41553
@@ -37,7 +37,7 @@
|
||||
namespace snmalloc
|
||||
{
|
||||
// Forwards reference so that the platform can define how to handle errors.
|
||||
void error(const char* const str);
|
||||
[[noreturn]] void error(const char* const str);
|
||||
} // namespace snmalloc
|
||||
|
||||
#define TOSTRING(expr) TOSTRING2(expr)
|
||||
|
||||
Reference in New Issue
Block a user