Browse Source

perf(CAPI): 🐛 change static to constexpr

tags/0.1.0
DragonAura 3 years ago
parent
commit
cbd1e2106d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      CAPI/API/include/utils.hpp

+ 2
- 2
CAPI/API/include/utils.hpp View File

@@ -13,9 +13,9 @@
namespace AssistFunction
{

const int numOfGridPerCell = 100;
constexpr int numOfGridPerCell = 100;

[[nodiscard]] static inline int GridToCell(int grid) noexcept
[[nodiscard]] constexpr inline int GridToCell(int grid) noexcept
{
return grid / numOfGridPerCell;
}


Loading…
Cancel
Save