62 Commits

Author SHA1 Message Date
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
Alberto Demichelis
a0857ae0b8 Merge pull request #97 from miconda/master
configurable makefile vars from command line
2017-07-31 15:41:36 +08:00
zeromus
57ca6c191e rename type macro to sqtype 2017-07-29 14:51:26 -05:00
Daniel-Constantin Mierla
3c8d024bdb configurable makefile vars from command line
- OUT and INCZ can be set in command line
- DEFS can be set via CC_EXTRA_FLAGS
- use the vars in sqstdlib makefile
2017-06-26 22:45:09 +02: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
8471ad1aea Merge branch 'master' of https://github.com/albertodemichelis/squirrel 2017-04-23 04:01:16 +08:00
albertodemichelis
a0e46fce11 improved stack cleanup for tailcalls 2017-04-23 03:54:12 +08:00
albertodemichelis
14cbc7b2dc minor fixed assertion in compiler 2017-04-23 03:53:22 +08:00
Paul
aa4afc5b14 Allow disable of CMake install() sections 2017-03-27 21:08:56 +01:00
Paul
d130dc5471 Add DISABLE_DYNAMIC to disable building shared libs for the case where you only want static libs. 2017-02-25 14:40:47 +00: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
Alberto Demichelis
cfd4df6988 Merge pull request #70 from dut-lang/issue_69
Fixed code style, remove the warning from gcc
2016-08-20 20:39:26 +08:00
Markus F.X.J. Oberhumer
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
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
albertodemichelis
17124aa789 Merge branch 'master' of https://github.com/albertodemichelis/squirrel 2016-07-30 19:09:53 +08:00
albertodemichelis
2ad9683f54 added rawcall 2016-07-30 19:09:40 +08:00
zeromus
d81f7e1c9d fix typo in sq_writeclosure error message 2016-06-26 20:19:51 -05:00
Alberto Demichelis
7aadf19f34 Merge pull request #63 from zeromus/master
documentation fixups
2016-06-24 23:50:16 +08: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
7290b1fffe docs & error message tidy 2016-06-19 15:44:00 -05:00
Alberto Demichelis
26ef4c4f5e Merge pull request #54 from Dwachs/no_warning_unused
FIX: no warnings on unused arguments on non-gnu compilers
2016-06-15 15:04:47 +08: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
Dwachs
2e346b54ac FIX: no warnings on unused arguments on non-gnu compilers 2016-06-08 21:08:38 +02: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
albertodemichelis
16ab1fd6c0 Merge branch 'master' of https://github.com/albertodemichelis/squirrel 2016-05-07 02:38:55 +08:00
albertodemichelis
2aef08d0a5 fixed fallback set
removed some cruft
2016-05-07 02:38:41 +08:00
zeromus
7bb5dd4982 move TARGET and STK to sqvm.cpp instead of SQ to reduce probability of collisions in case inner headers are included 2016-05-05 10:23:55 -05:00
Sandu Liviu Catalin
692d4958e8 Remove empty statement. 2016-04-28 00:06:57 +03:00
zeromus
7305257b95 tidy sq_setreleasehook and sq_getreleasehook 2016-04-20 20:50:53 -05:00
appetizermaker
ed23d140df Fix small mistake on sqlexer.cpp 2016-04-19 23:25:08 +09: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
albertodemichelis
04a4ff5c8d fixed warning 2016-03-22 22:17:39 +08:00
Domingo Alvarez Duarte
9245970906 Fix conversion of integers base >= 14 2016-03-21 23:11:46 +00:00
Fabian Wolff
ba57d3b592 Add option to disable static targets 2016-03-17 12:44:03 +01:00
Fabian Wolff
89b5c519af Improve Linux build 2016-03-16 00:01:16 +01:00
Fabian Wolff
2592e50f83 Implement more flexible installation 2016-03-13 14:36:10 +01:00
Fabian Wolff
dc4eb2ad3e Fix DLL installation with MSVC 2016-03-08 14:48:19 +01:00
Fabian Wolff
d9ce07f065 Merge branch master 2016-03-08 13:59:33 +01:00
Fabian Wolff
2fb3522470 Various improvements 2016-03-06 19:43:57 +01:00
Markus F.X.J. Oberhumer
6dee69057e Silence all -Wunused-parameter warnings. 2016-03-06 16:15:13 +01:00
Markus F.X.J. Oberhumer
bf2c28b0ce Silence all -Wmissing-field-initializer warnings. 2016-03-06 16:04:32 +01:00
Markus F.X.J. Oberhumer
026671b3d5 Silence some pedantic compilation warnings. 2016-03-06 15:49:46 +01:00
Markus F.X.J. Oberhumer
8dfee6dedd Remove trailing whitespace. 2016-03-06 15:48:37 +01:00
albertodemichelis
737ea798a8 added \u and \U escape sequence for UTF8,UTF16 or UCS4 characters
the escape character \x is based on sizeof(SQChar)
2016-03-05 19:29:14 +08:00