mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
llAbs(-2147483648) raises this: System.OverflowException: Value is too small. at System.Math.Abs (Int32 value) [0x00000] in <filename unknown>:0 at LindenLab.SecondLife.Library.llAbs (Int32 i) [0x00000] in <filename unknown>:0 So it's actually not computable. In LSO it returns -2147483648, though.
47 lines
1.8 KiB
Python
47 lines
1.8 KiB
Python
# (C) Copyright 2015-2016 Sei Lisa. All rights reserved.
|
|
#
|
|
# This file is part of LSL PyOptimizer.
|
|
#
|
|
# LSL PyOptimizer is free software: you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License as
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
# License, or (at your option) any later version.
|
|
#
|
|
# LSL PyOptimizer is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with LSL PyOptimizer. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# These types just wrap the Python types to make type() work on them.
|
|
# There are no ops defined on them or anything.
|
|
|
|
class Key(unicode):
|
|
def __repr__(self):
|
|
return 'Key(' + super(Key, self).__repr__() + ')'
|
|
|
|
class Vector(tuple):
|
|
def __repr__(self):
|
|
return 'Vector(' + super(Vector, self).__repr__() + ')'
|
|
|
|
class Quaternion(tuple):
|
|
def __repr__(self):
|
|
return 'Quaternion(' + super(Quaternion, self).__repr__() + ')'
|
|
|
|
# Recognized: 3763, 6466, 6495
|
|
# BUG-3763 affected llXorBase64 (see lslbasefuncs.py). It's been fixed.
|
|
# BUG-6466 is about some valid numbers in JSON not being accepted. It's fixed.
|
|
# BUG-6495 is about "]" inside a JSON string closing an array. It's NOT FIXED.
|
|
Bugs = set([6495])
|
|
|
|
# LSO is generally not supported, but some calculations can handle it. The
|
|
# main intention of this setting is for the code to serve as documentation
|
|
# of how LSO's behaviour differs from Mono's in the fine details.
|
|
LSO = False
|
|
|
|
# Set to True by lslcalc's main
|
|
IsCalc = False
|
|
|
|
DataPath = ''
|