示例#1
0
 private bool ToString(ref TValue o)
 {
     if (o.TtIsString())
     {
         return(true);
     }
     return(V_ToString(ref o));
 }
示例#2
0
        private HNode GetHashNode(ref TValue v)
        {
            if (IsPositiveInteger(ref v))
            {
                return(GetHashNode((int)v.NValue));
            }

            if (v.TtIsString())
            {
                return(GetHashNode(v.SValue().GetHashCode()));
            }

            return(GetHashNode(v.GetHashCode()));
        }
示例#3
0
        public override string ToString()
        {
            string detail;

            if (V.TtIsString())
            {
                detail = V.SValue().Replace("\n", "»");
            }
            else
            {
                detail = "...";
            }
            return(string.Format("StkId - {0} - {1}", LuaState.TypeName((LuaType)V.Tt), detail));
        }
示例#4
0
        private HNode GetHashNode(ref TValue v)
        {
            if(IsPositiveInteger(ref v)) { return GetHashNode((int)v.NValue); }

            if(v.TtIsString()) { return GetHashNode(v.SValue().GetHashCode()); }

            return GetHashNode(v.GetHashCode());
        }
示例#5
0
 private bool ToString(ref TValue o)
 {
     if(o.TtIsString()) { return true; }
     return V_ToString(ref o);
 }