Skip to content

Commit 0828baa

Browse files
committed
moved builtin::hasPathPrefix to correct place
1 parent 5ac3b55 commit 0828baa

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

include/nbl/builtin/common.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22
// This file is part of the "Nabla Engine".
33
// For conditions of distribution and use, see copyright notice in nabla.h
44

5-
#include <string_view>
65

7-
namespace nbl::builtin
8-
{
9-
constexpr std::string_view PathPrefix = "nbl/builtin/";
10-
constexpr bool hasPathPrefix(std::string_view str) { return str.find(PathPrefix) == 0ull; }
11-
}
126

137
#ifndef _NBL_BUILTIN_COMMON_H_INCLUDED_
148
#define _NBL_BUILTIN_COMMON_H_INCLUDED_
@@ -17,6 +11,13 @@ namespace nbl::builtin
1711

1812
#include <cstring>
1913

14+
#include <string_view>
15+
namespace nbl::builtin
16+
{
17+
constexpr std::string_view PathPrefix = "nbl/builtin/";
18+
constexpr bool hasPathPrefix(std::string_view str) { return str.find(PathPrefix) == 0ull; }
19+
}
20+
2021
namespace nbl
2122
{
2223
namespace builtin

0 commit comments

Comments
 (0)