Commits

KS Sreeram  committed 8f2d614

lua.highlevel: add checkBoolean.

  • Participants
  • Parent commits 36beba0

Comments (0)

Files changed (1)

File lib-clay/lua/highlevel/highlevel.clay

     });
 }
 
+checkBoolean(x:State, index:Int) = safeCall(x,
+    x ref=> Bool(luaL_checkint(x.handle, index))
+);
+
 checkInt(x:State, index:Int) = safeCall(x,
     x ref=> luaL_checkint(x.handle, index)
 );