Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Merge requests
!49
An error occurred while fetching the assigned milestone of the selected merge_request.
Bug fixes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Bug fixes
JK/bugfixes
into
develop
Overview
0
Commits
17
Pipelines
0
Changes
1
Merged
Jakub Klinkovský
requested to merge
JK/bugfixes
into
develop
5 years ago
Overview
0
Commits
17
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
5308ef2f
Prev
Next
Show latest version
1 file
+
6
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
5308ef2f
Define non-standard macro __STRING for platforms which don't use glibc
· 5308ef2f
Jakub Klinkovský
authored
5 years ago
Fixes
#58
src/TNL/Assert.h
+
6
−
0
Options
@@ -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
Loading