albertodemichelis
ab7243ca59
Merge branch 'master' of https://github.com/albertodemichelis/squirrel
2017-11-17 04:01:47 +08:00
albertodemichelis
3c2de4bd59
added sq_tailcall()
2017-11-17 03:55:35 +08:00
lindqva
74cca2d7d3
Fix a bug where sq_newmember and sq_rawnewmember did not pop their arguments.
2017-11-14 13:22:05 +01:00
zeromus
31738a5b37
use sq_type (which already existed in the public API) instead of the identical sqtype (which was introduced by commit a3a78eec2050162c4912a5208f92b27f658976d8)
2017-09-22 21:22:43 -04:00
zeromus
57ca6c191e
rename type
macro to sqtype
2017-07-29 14:51:26 -05:00
Markus F.X.J. Oberhumer
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
albertodemichelis
be35cf850b
-fixed _set method in userdata deelegates
...
-fixed some warnings
-sq_gettypetag doesn't set last error(it's treated as SQBool function but keeps a SQRESULT for backward compatibility)
2017-01-02 18:21:41 +08:00
Avelino
48842f0979
fixing indentation error and return object delegate cycle
2016-08-17 20:23:08 -03:00
Avelino
f3bb11ef99
fixed typo, file indentation
2016-08-13 18:01:21 -03:00
Avelino
36c308bf57
Fixed code style, remove the warning from gcc
...
issue #69
2016-08-13 17:45:05 -03:00
zeromus
d81f7e1c9d
fix typo in sq_writeclosure error message
2016-06-26 20:19:51 -05:00
zeromus
98b5cc434d
support sq_getinteger() for bools (returns SQFalse or SQTrue in the SQInteger). Useful for format("%d",mybool)
2016-06-19 18:48:46 -05:00
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