Jrayp / Moku

Map utility & auto-tile module for the Defold game engine
MIT License
36 stars 2 forks source link

Global function declarations in moku.lua #2

Closed britzl closed 6 years ago

britzl commented 6 years ago

There's a few functions (constructor_helper, binary_sum_4bit, binary_sum_8bit etc) that all look like utility functions internal to the moku module but none of them are declared as local functions.

Jrayp commented 6 years ago

They are declared local in a forward declaration

--o  Forward Declarations  o--

local constructor_helper
local binary_sum_8bit
local binary_sum_4bit
local get_type
britzl commented 6 years ago

Ah, indeed you do!