Commit Graph

59 Commits

Author SHA1 Message Date
43370e97db Merge pull request #267 from Dwachs/master
FIX link in documentation of class attributes
2023-02-22 00:12:41 +01:00
abfe2752f1 FIX link in documentation of class attributes 2023-02-21 09:07:12 +01:00
57b8f56902 removed debug print 2023-02-01 17:42:32 +01:00
f92bc29878 fixed version number in doc 2022-02-10 17:46:03 +01:00
8d57d6056b sq_getinstanceup adds throwerror parameter 2021-06-22 17:56:46 +08:00
d1f54757c2 some doc updates and fixes 2021-06-02 18:47:46 +08:00
0a59e991e2 Add optional argument 'skipempty' to split function 2019-12-23 14:46:50 +02:00
186e722c05 Fix docs typo: trough -> through 2019-08-10 20:55:40 -04:00
ca2c74b319 removed unused extension from sphinx config 2019-03-12 21:59:59 +08:00
6bf9ab5162 added table.keys() and table.values() 2019-03-12 21:57:54 +08:00
780e9c96b3 Merge pull request #167 from VasiliyRyabtsev/feature/reduce-initializer
Add optional initializer to array.reduce()
2018-12-02 02:34:16 +08:00
8e5b1e70d0 Allow additional parameters in array.map()/array.apply() handler
Sometimes it is needed to process array when result depends not
on item value only, but also from its position or collection content.
So make array.map() and array.apply() functions more flexible by
supporting optional additional parameters in callback: item index
and reference to array being processed.
(The design is like in https://underscorejs.org/#map)
2018-10-31 18:37:01 +03:00
04cf1c2ed0 Add optional initializer to array.reduce() 2018-10-31 18:07:25 +03:00
665b5b1c5d Make params count type signed in sq_getclosureinfo()
For native closures this method returns _nparamscheck value
which can be negative when function accepts variable number of
arguments - and it's incorrect to cast it to unsigned.

Also, _nparameters, _noutervalues and _nparamscheck fields are
actually signed integers, so it is better to keep them signed.
And casting _noutervalues is ok since it has enough capacity.
2018-07-20 09:49:38 +03:00
f4665e155e now container modification methods return object itself in all cases
for easy chaining
2018-05-29 02:33:19 +03:00
4a8ed6a67a Typo e.g. "it's" 2018-04-11 10:28:02 +00:00
453a966890 Merge pull request #119 from VasiliyRyabtsev/feature/table-filter
Implement table.filter() default delegate in base library
2017-12-05 16:28:35 +08:00
c10a777285 Add optional message text parameter for assert() 2017-12-01 11:49:44 +07:00
ee38035634 Implement table.filter() default delegate in base library
Filter callback is the same as for array.filter(), ie function(key, value)
2017-11-28 23:08:10 +07:00
7d589eb444 Fix some small bugs in the documentation examples. 2017-11-20 15:35:44 +01:00
b00cd02629 Merge pull request #114 from breakin/fix/doc-references_from_c
Fix errors in documentation source code
2017-11-17 04:19:14 +08:00
5460758eb0 some doc on sq_tailcall 2017-11-17 04:14:15 +08:00
5c737b040a Fix errors in documentation source code 2017-11-16 16:05:04 +01:00
26a655a503 Clarify that sq_newclass pushes the new class in the stack. 2017-11-14 13:29:44 +01:00
2186a3fe21 Merge pull request #95 from kainjow/patch-1
Fix typo
2017-06-19 23:26:21 +08:00
304be42986 Fix typo 2017-06-14 08:39:58 -07:00
00b4d3abd1 Normalize whitespace.
Strip trailing whitespace, de-tabify and ensure that each file
ends with a newline.
2017-06-14 14:09:53 +02:00
eeba56c81b Normalize whitespace.
Convert source files to Unix EOL mode, convert .bat files to DOS EOL
mode, de-tabify and strip trailing whitespace.
2016-08-19 13:40:31 +02:00
bd43d374dc minor documentation fixes 2016-08-07 01:29:58 +08:00
15e2c23eea Minor spelling fix 2016-07-19 16:19:35 -04:00
7aadf19f34 Merge pull request #63 from zeromus/master
documentation fixups
2016-06-24 23:50:16 +08:00
90cd4bc238 Documentation cleanup, part one. 2016-06-23 15:21:26 -07:00
ba338b145c remove spurious 'previdx' from _tostring metamethod docs 2016-06-21 19:29:53 -05:00
87deb68c46 rewrite docs for 'this' argument passing. I found some of the finer points to be confusing (I was led to believe indexing a function off an object would bindenv the object to it, but it doesnt). So I changed the language to 'immediately indexed' and then tried to elaborate that. 2016-06-20 01:51:44 -05:00
457f3b25bc docs fix... all the builtin_functions for function were mislabeled as array? 2016-06-20 01:07:30 -05:00
7290b1fffe docs & error message tidy 2016-06-19 15:44:00 -05:00
3b217e7e42 fix getstackinfos docs 2016-06-14 13:09:53 -05:00
3c4098da84 small docs fixes. small typo fixes in sqapi.cpp error messages 2016-06-13 20:19:32 -05:00
09c4e7a8c1 fix docs for 'unsigned right shift operator' to reference >>> instead of <<< ! also minor tidying in same file 2016-06-02 19:24:21 -05:00
4f20c881ab Merge pull request #47 from zeromus/printf
feature: add a printf function to the string stdlib
2016-05-16 01:45:37 +08:00
9004743fc4 docs for sq_getstringandssize 2016-05-15 01:00:47 -05:00
7c0550b8ad printf docs and other small docs tidies 2016-05-15 00:30:15 -05:00
5b50a56e56 docs fixes and formatting 2016-05-05 10:23:55 -05:00
301db648da docs typo fixes 2016-04-23 20:29:04 -05:00
e347779446 fix various typos and incompletely apply very lightweight formatting normalization (continued) 2016-04-20 19:30:22 -05:00
78b44c851b add a note to push a dummy value for sq_call when constructing an instance. this just cost me a lot of time! 2016-04-18 06:44:14 -05:00
b35c9e827c fix various typos and incompletely apply very lightweight formatting normalization; clarify sq_getbyhandle applies to class or instance 2016-04-18 06:44:14 -05:00
c44d568a8b docs typo fix: ivoked&ecoding 2016-04-14 18:28:41 -05:00
a70a135192 clarify sq_getmemberhandle - it only works on classes. not sure what vice-versa meant 2016-04-14 18:25:00 -05:00
4fddb87839 tidy metamethods general docs 2016-04-14 18:23:45 -05:00