Example #1
0
 static public int ReadBool(IntPtr l)
 {
     try {
         SLua.ByteArray self = (SLua.ByteArray)checkSelf(l);
         var            ret  = self.ReadBool();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #2
0
 public static int ReadBool(IntPtr ptr)
 {
     try
     {
         ByteArray self = (ByteArray)LuaObject.CheckSelf(ptr);
         bool      ret  = self.ReadBool();
         LuaObject.PushValue(ptr, true);
         LuaObject.PushValue(ptr, ret);
         return(2);
     }
     catch (Exception e)
     {
         return(Error(ptr, e));
     }
 }