summaryrefslogtreecommitdiff
path: root/lib/strings.hpp
blob: 9dca9aceb8a1722d0f250a99d7e3d2cadae0fd43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;
}