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