Age | Commit message (Collapse) | Author |
|
we had
While at it, replace OTTD_ASSERT with WITH_ASSERT, as this
is always set if assert() is valid. No matter if NDEBUG is set
or not.
|
|
Due to 47a99bb the order of elements in the garbage collection chain has
changed causing the class to be finalised before the instances of that class.
Since the instance's array of member values depends on the size of the values
in the class, the class finalisation resetting that size to 0 causes not all
finalisations to run, which subsequently causes a heap use after free. So,
just set the SQObjectPtrs to 'null' during the finalisation of the SQClass
so the SQInstance can release all instance variables during its finalisation.
|
|
|
|
|
|
|
|
|
|
|
|
the screen.
|
|
|
|
|
|
that followed
|
|
Clang-cl presents as both _MSC_VER and __clang__ in the preprocessor which makes some things confusing.
|
|
CMake works on all our supported platforms, like MSVC, Mingw, GCC,
Clang, and many more. It allows for a single way of doing things,
so no longer we need shell scripts and vbs scripts to work on all
our supported platforms.
Additionally, CMake allows to generate project files for like MSVC,
KDevelop, etc.
This heavily reduces the lines of code we need to support multiple
platforms from a project perspective.
Addtiionally, this heavily improves our detection of libraries, etc.
|
|
Sourced from https://github.com/akrzemi1/Optional, Boost Software License, Version 1.0.
|
|
|
|
|
|
(fixes warning from clang)
|
|
|
|
This can avoid out-of-memory situations due to single scripts using up the entire address space.
Instead, scripts that go above the maximum are killed.
The maximum is default 1 GB per script, but can be configured by a setting.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
improper handling of non-ASCII characters by the string pointer lexer
|
|
|
|
comments
|
|
especially never should use
|
|
|
|
|
|
instance variables
|
|
instance variables of SQString into the constructor
|
|
|
|
more explicit
|
|
|
|
|
|
there's no need to construct first and then call init in the next line
|
|
|
|
code from (static) Init to constructure for SQFunctionProto
|
|
|
|
properly initialized
|
|
|
|
|
|
|
|
already in stdafx.h
|
|
|
|
exporting things to C from our squirrel
|
|
|