Commit Graph

278 Commits

Author SHA1 Message Date
eebbca7a3c fixes few compiler issues 2022-11-17 16:05:32 +01:00
b31e5bdc21 Merge branch 'master' of https://github.com/albertodemichelis/squirrel 2022-05-02 12:05:18 +02:00
a6413aa690 fix in thread.call 2022-05-02 12:04:58 +02:00
d5239c70c9 Merge pull request #249 from Semphriss/patch-2
Move CMake installer line in if() statement
2022-03-09 18:31:08 +01:00
9a659f3f68 Merge pull request #248 from Semphriss/patch-1
Fix interpreter CMake alias for static builds
2022-03-09 18:30:46 +01:00
f1c0e65eb1 Move CMake installer line in if() statement 2022-03-09 02:48:52 +00:00
79711c69e2 Fix interpreter CMake alias for static builds
The interpreter for static builds is called `sq_static`, but its alias is referring to `sq`, which is only generated from dynamic builds and breaks CMake builds that disable dynamic builds (`-DDISABLE_DYNAMIC=ON`).
2022-03-09 02:26:30 +00:00
13bd5e7d17 Merge pull request #247 from Grumbel/fix-version-cmake
fixed version number in CMakeLists.txt
2022-03-08 18:41:32 +01:00
af69eb7084 fixed version number in CMakeLists.txt 2022-03-08 18:25:52 +01:00
f92bc29878 fixed version number in doc v3.2 2022-02-10 17:46:03 +01:00
3129237f09 changed copyright year 2022-02-10 16:29:02 +01:00
27a7f4b60c Merge branch 'master' of https://github.com/albertodemichelis/squirrel 2021-09-16 22:51:01 +08:00
23a0620658 check max member count in class 2021-09-16 22:36:53 +08:00
4683c567f5 checks for max member count for classes 2021-09-16 22:28:30 +08:00
1bd49c25f7 fix in new bind env 2021-06-28 14:00:00 +08:00
a0d8bde4f6 changed version in README 2021-06-24 00:21:08 +08:00
420ff4240a updated readme and Co. 2021-06-22 18:08:49 +08:00
8d57d6056b sq_getinstanceup adds throwerror parameter 2021-06-22 17:56:46 +08:00
e3519a3d60 3.2 in header 2021-06-10 18:27:49 +08:00
d1f54757c2 some doc updates and fixes 2021-06-02 18:47:46 +08:00
d7c9103cc4 Merge branch 'newbindenv' 2021-06-02 17:26:33 +08:00
87009545a4 inline bindenv 2021-06-02 17:19:29 +08:00
cf0516720e Merge pull request #228 from GaijinEntertainment/fix-temp-sqobjectptr
Fix creating unnecessary temporary object with refcount
2020-12-14 02:22:20 +08:00
b4f600ebc0 Fix creating unnecessary temporary object with refcount
Using the SQObject& is enough for HashObj() function.

In the following code

  RefTable::RefNode *RefTable::Get(SQObject &obj,SQHash &mainpos,RefNode **prev,bool add)
  {
    RefNode *ref;
    mainpos = ::HashObj(obj)&(_numofslots-1);

obj was SQObject and because HashObj() accepted SQObjectPtr&, a temporary
SQObjectPtr was created and refcounting was performed, which only lead to
unnecessary overhead.
2020-10-29 00:22:00 +03:00
a21721642e Merge pull request #209 from atanasovdaniel/split
Add optional argument 'skipempty' to split function
2020-07-22 18:11:41 +08:00
9111578297 Merge pull request #222 from GMScribe/master
Fixed global swap2() providing incorrect results
2020-07-17 16:52:22 +08:00
06b394a483 Fixed global swap2() providing incorrect results 2020-07-16 21:31:57 +01:00
40050fa249 fixed security vulnerabilty in regexp object 2020-06-12 23:58:44 +08:00
0c5d01ab2d Merge branch 'master' of https://github.com/albertodemichelis/squirrel 2020-06-12 23:36:11 +08:00
7dd0153f10 added security fix in array.sort() when cmp function resizes the array 2020-06-12 23:34:33 +08:00
19442ab8a7 Merge pull request #201 from atanasovdaniel/err_on_badcall
Set error message if called object is not callable
2020-03-11 17:06:31 +08:00
d2a6898355 Merge pull request #208 from atanasovdaniel/fmt_for_string_printf
Set format string for _string_printf
2020-03-11 17:05:57 +08:00
76fa8939e9 Merge pull request #211 from rajkosto/master
Fix build when SQUSEDOUBLE is defined
2020-03-11 17:01:58 +08:00
34412db7d4 Merge pull request #213 from RobLoach/patch-1
Add FreeBSD to supported platforms
2020-03-11 17:01:00 +08:00
a25d431105 Merge pull request #204 from jet082/master
ios support
2020-03-11 17:00:37 +08:00
03341c7e60 docs: Add FreeBSD to supported platforms
Fixes #195
2020-02-27 13:57:38 -05:00
521903906a Fix build when SQUSEDOUBLE is defined 2020-02-19 13:44:43 +01:00
0a59e991e2 Add optional argument 'skipempty' to split function 2019-12-23 14:46:50 +02:00
a2f325df73 Set format string for _string_printf 2019-12-01 11:34:59 +02:00
98aef14d70 Merge pull request #206 from linuxmaniac/vseva/fix_205
fix compilation warning
2019-11-30 14:18:18 +08:00
7a973ad90d fix compilation warning
> albertodemichelis/squirrel/squirrel/sqbaselib.cpp: In function ‘SQInteger __map_array(SQArray*, SQArray*, HSQUIRRELVM)’:
> albertodemichelis/squirrel/squirrel/sqbaselib.cpp:646:9: warning: ‘nArgs’ may be used uninitialized in this function [-Wmaybe-uninitialized]
>         if (nArgs >= 4)
>         ^

fixes #205
2019-11-28 14:03:24 +01:00
e92667c49c ios support 2019-11-16 08:21:16 -08:00
62f2d4a130 Raise error if called object is not callable 2019-10-29 22:41:07 +02:00
9dcf74f990 Merge pull request #149 from VasiliyRyabtsev/null-to-string
Print null as 'null', not as '(null : 0x00000000)'
2019-09-21 00:04:29 +08:00
2aa00f4dd4 Merge pull request #198 from nikolas/patch-4
Spelling fix in sqcompiler error
2019-09-21 00:03:08 +08:00
31611a84ec Spelling fix in sqcompiler error
This error isn't as clear as it could be, but I think this would be break, not brake.
2019-09-18 21:15:47 -04:00
e26f40b8cb Merge pull request #191 from nikolas/patch-3
SQVM::dumpstack: fix WEAKREF typo
2019-08-31 18:20:49 +08:00
cbfbb60d94 SQVM::dumpstack: fix WEAKREF typo 2019-08-27 18:42:09 -04:00
1b25d4acda Merge pull request #180 from iSLC/master
Implement sq_throwerrorf to allow formatted error messages.
2019-08-16 12:21:36 +08:00
260412d33c Merge pull request #188 from nikolas/remove-unnecessary-assignments
sqfuncstate: Remove some unnecessary assignments
2019-08-16 12:20:28 +08:00