Skip to content

Commit

Permalink
Avoid unused variable warnings (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketasaja authored Aug 23, 2024
1 parent dcfa34d commit a54928e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ local function ECS_ENTITY_T_LO(e: i53): i24
return if e > ECS_ENTITY_MASK then (e // ECS_ID_FLAGS_MASK) // ECS_ENTITY_MASK else e
end

local function STRIP_GENERATION(e: i53): i24
local function _STRIP_GENERATION(e: i53): i24
return ECS_ENTITY_T_LO(e)
end

Expand Down Expand Up @@ -159,7 +159,7 @@ local function entity_index_get_alive(index: EntityIndex, e: i24): i53
error(ERROR_ENTITY_NOT_ALIVE)
end

local function entity_index_sparse_get(entityIndex, id)
local function _entity_index_sparse_get(entityIndex, id)
return entityIndex.sparse[entity_index_get_alive(entityIndex, id)]
end

Expand Down Expand Up @@ -432,7 +432,7 @@ local function id_record_ensure(
return idr
end

local function ECS_ID_IS_WILDCARD(e: i53): boolean
local function _ECS_ID_IS_WILDCARD(e: i53): boolean
assert(ECS_IS_PAIR(e))
local first = ECS_ENTITY_T_HI(e)
local second = ECS_ENTITY_T_LO(e)
Expand Down

0 comments on commit a54928e

Please sign in to comment.