diff options
Diffstat (limited to 'lib/strlen.h')
-rw-r--r-- | lib/strlen.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/strlen.h b/lib/strlen.h new file mode 100644 index 0000000..0053cce --- /dev/null +++ b/lib/strlen.h @@ -0,0 +1,14 @@ +#pragma once + +#include <GL/glew.h> +#include <cstddef> + +constexpr auto +constexpr_strlen(const GLchar * const s) +{ + std::size_t ch {}; + while (s[ch]) { + ch++; + } + return ch; +} |