2
0

_hx_objects.lua 338 B

123456789101112131415
  1. local function _hx_mmt(prototype)
  2. return {
  3. __newindex = _hx_obj_newindex,
  4. __index = prototype,
  5. __tostring = _hx_tostring
  6. }
  7. end
  8. local function _hx_new(prototype)
  9. return setmetatable({ __fields__ = {} }, _hx_mmt(prototype))
  10. end
  11. local function _hx_nsh(metatable)
  12. return setmetatable({ __fields__ = {} }, metatable)
  13. end