summaryrefslogtreecommitdiff
path: root/lib/strlen.h
blob: 2090d2529c42536f496a0a181ea787b08f90699e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include <cstddef>
#include <glad/gl.h>

constexpr auto
constexpr_strlen(const GLchar * const s)
{
	std::size_t ch {};
	while (s[ch]) {
		ch++;
	}
	return ch;
}