Skip to content
Snippets Groups Projects
Commit 5308ef2f authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Define non-standard macro __STRING for platforms which don't use glibc

Fixes #58
parent eee0c9ef
No related branches found
No related tags found
1 merge request!49Bug fixes
......@@ -376,6 +376,12 @@ TNL_IMPL_CMP_HELPER_( GT, > );
#define __TNL_PRETTY_FUNCTION __PRETTY_FUNCTION__
#endif
// On Linux, __STRING is defined in glibc's sys/cdefs.h, but there is no such
// header on Windows and possibly other platforms.
#ifndef __STRING
#define __STRING(arg) #arg
#endif
// Internal macro to compose the string representing the assertion.
// We can't do it easily at runtime, because we have to support assertions
// in CUDA kernels, which can't use std::string objects. Instead, we do it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment