added lua bool macro with inline functions