14 Commits

Author SHA1 Message Date
zeromus
3c4098da84 small docs fixes. small typo fixes in sqapi.cpp error messages 2016-06-13 20:19:32 -05:00
zeromus
997c7aefd2 Update sqapi.cpp
change comment "pop closure and args" to "pop args" in sq_call(). 

the code clearly pops only args.

the docs say: "the function pops all the parameters and leave the closure in the stack"
2016-06-11 16:48:22 -05:00
albertodemichelis
f441f7f99d small fix in sq_getstringandsize 2016-05-16 01:44:13 +08:00
zeromus
0961039dd7 change sq_getpstring to sq_getstringandsize 2016-05-15 00:53:11 -05:00
zeromus
656c6a0d68 add SQPString and sq_getpstring() - an easy way to retrieve strings along with their size, to avoid useless strlens later. it's named PString to suggest that it's like a pascal-style PSTring, prefixed with the length--that's basically what it is. 2016-05-10 20:56:46 -05:00
zeromus
7305257b95 tidy sq_setreleasehook and sq_getreleasehook 2016-04-20 20:50:53 -05:00
zeromus
953d9e9771 fix typo in error messages: "stack overflow, cannot resize stack while in a metamethod" 2016-04-14 18:17:45 -05:00
Fabian Wolff
2fb3522470 Various improvements 2016-03-06 19:43:57 +01:00
Markus F.X.J. Oberhumer
0378c7016f Normalize whitespace.
Convert files to Unix EOL mode, de-tabify and strip trailing whitespace.
2016-02-15 20:51:20 +01:00
albertodemichelis
b14fc118c0 fixed regression in sq_resume 2016-01-26 00:02:39 +08:00
mingodad
cf5b6bbabf Add array to the list of invalid types for sq_bindenv.
Remove duplicated function calls with same parameters.
2016-01-18 20:48:39 +00:00
mingodad
be2955b926 Remove multiple calls with same parameter by only one call. 2016-01-18 19:27:16 +00:00
mingodad
fc3da7819f Fix possible buffer overflow, sizeof(SQChar) can be > 1 and the we need to reserve/allocate the correct size. 2016-01-18 19:00:59 +00:00
albertodemichelis
85dfe4b676 first commit 2015-12-22 03:14:21 +08:00