summaryrefslogtreecommitdiff
path: root/lib/strings.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/strings.h')
-rw-r--r--lib/strings.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/strings.h b/lib/strings.h
new file mode 100644
index 0000000..9dca9ac
--- /dev/null
+++ b/lib/strings.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <GL/glew.h>
+
+constexpr auto
+constexpr_strlen(const GLchar * const s)
+{
+ std::size_t ch {};
+ while (s[ch]) {
+ ch++;
+ }
+ return ch;
+}