_hx_func_to_field.lua 150 B

123456789
  1. _hx_funcToField = function(f)
  2. if type(f) == 'function' then
  3. return function(self,...)
  4. return f(...)
  5. end
  6. else
  7. return f
  8. end
  9. end