Commit Graph

182 Commits

Author SHA1 Message Date
Alberto Demichelis
6186e02a23 Merge pull request #80 from jansol/submodule-fix
Fix building as a git submodule.
2017-03-14 18:58:17 +08:00
Jan Solanti
bdcb7cc12b Fix building as a git submodule.
CMAKE_SOURCE_DIR points at the root project's source dir,
which is wrong when building squirrel as a git submodule.
CMAKE_CURRENT_SOURCE_DIR points at the dir of the current
CMakeLists.txt and thus should be used most of the time.
2017-03-10 19:42:10 +02: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
05dbbc1820 Merge pull request #77 from iSLC/master
Never assume the format is actually a string.
2016-11-21 13:31:11 +08:00
Sandu Liviu Catalin
795af921cc Never assume the format is actually a string.
The invoker should at least know that the value he specified is not of the correct type.
2016-11-16 10:47:29 +02:00
Alberto Demichelis
fae1cabb51 Merge pull request #73 from mfxmfx/fix-unused-arg-macro
Fix the SQ_UNUSED_ARG() macro so that is works with current gcc version.
2016-08-20 20:42:57 +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
Alberto Demichelis
c7a0707137 Merge pull request #72 from mfxmfx/normalize-whitespace
Normalize whitespace.
2016-08-20 20:38:16 +08:00
Markus F.X.J. Oberhumer
701a0e4ae5 Fix the SQ_UNUSED_ARG() macro so that is works with current gcc version. 2016-08-19 14:23:13 +02: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
bd43d374dc minor documentation fixes 2016-08-07 01:29:58 +08:00
albertodemichelis
3019ac3c2c fixed VC issue with VC 2016-07-30 19:13:29 +08:00
albertodemichelis
5e4bcebc6f fixed VC issue with SQ_UNUSED_ARG 2016-07-30 19:13:05 +08: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
Alberto Demichelis
d1d28aacc9 Merge pull request #66 from msakuta/master
Minor spelling fix
2016-07-21 18:14:09 +08:00
msakuta
15e2c23eea Minor spelling fix 2016-07-19 16:19:35 -04:00
Alberto Demichelis
7629853586 Merge pull request #65 from zeromus/master
add mechanism for configuring squirrel by optionally #including a file in squirrel.h
2016-07-14 00:10:25 +08:00
zeromus
e618271e11 add mechanism for configuring squirrel by #including _SQ_CONFIG_INCLUDE, if it exists 2016-07-12 18:06:30 -05: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
Alberto Demichelis
f7cf119db7 Merge pull request #61 from zeromus/getinteger-from-bool
support sq_getinteger() for bools
2016-06-24 23:17:32 +08:00
Alberto Demichelis
a96a2f3d78 Merge pull request #62 from allenluce/doc1
Documentation cleanup, part one.
2016-06-24 23:16:36 +08:00
Allen Luce
90cd4bc238 Documentation cleanup, part one. 2016-06-23 15:21:26 -07:00
zeromus
ba338b145c remove spurious 'previdx' from _tostring metamethod docs 2016-06-21 19:29:53 -05:00
zeromus
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
zeromus
457f3b25bc docs fix... all the builtin_functions for function were mislabeled as array? 2016-06-20 01:07:30 -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
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
Alberto Demichelis
2d509d385b Merge pull request #57 from zeromus/master
docs fixups
2016-06-15 15:03:20 +08:00
zeromus
3b217e7e42 fix getstackinfos docs 2016-06-14 13:09:53 -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
Dwachs
2e346b54ac FIX: no warnings on unused arguments on non-gnu compilers 2016-06-08 21:08:38 +02:00
zeromus
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
Alberto Demichelis
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
albertodemichelis
f441f7f99d small fix in sq_getstringandsize 2016-05-16 01:44:13 +08:00
Alberto Demichelis
8ca802658c Merge pull request #45 from zeromus/pstring
feature: sq_getstringandsize()
2016-05-16 01:42:00 +08:00
zeromus
9004743fc4 docs for sq_getstringandssize 2016-05-15 01:00:47 -05:00
zeromus
0961039dd7 change sq_getpstring to sq_getstringandsize 2016-05-15 00:53:11 -05:00
zeromus
7c0550b8ad printf docs and other small docs tidies 2016-05-15 00:30:15 -05:00
zeromus
e0f0e180a3 add a printf function to the string stdlib, so we can avoid having to write print(format( all the time. it should be a little more lean than writing that function in lua yourself (can work entirely from scratchpad this way). 2016-05-12 11:48:52 -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