Commit Graph

1556 Commits

Author SHA1 Message Date
Stephen Chung
3a98567139 Use take_string. 2020-09-20 14:29:10 +08:00
Stephen Chung
d8d3b52d64 Merge branch 'plugins_dev' of https://github.com/schungx/rhai into plugins_dev 2020-09-20 14:25:31 +08:00
Stephen Chung
2ba875a177 Use take_string for &str and String parameters. 2020-09-20 14:23:14 +08:00
Stephen Chung
bf245a798b Enable String parameters. 2020-09-20 10:51:37 +08:00
Stephen Chung
5a7a0f11ae Fix doc test. 2020-09-20 10:51:37 +08:00
Stephen Chung
cfe28c9282 Remove Position parameter from plugin call function. 2020-09-20 10:51:37 +08:00
Stephen Chung
7c3498a4e1 Prevent errors when using alternative error printout style. 2020-09-20 10:51:37 +08:00
Stephen Chung
3341f40fd2 Refine docs. 2020-09-20 10:50:58 +08:00
Stephen Chung
20a453b3cc Enable String parameters. 2020-09-19 18:18:40 +08:00
Stephen Chung
39546b7053 Enable &str and String parameters in module functions. 2020-09-19 18:12:23 +08:00
Stephen Chung
2ff3a1fde5 Refine docs. 2020-09-19 12:14:02 +08:00
Stephen Chung
f5d132d1f4 Fix doc test. 2020-09-18 14:12:57 +08:00
Stephen Chung
fe718fea39 Remove Position parameter from plugin call function. 2020-09-18 13:59:38 +08:00
Stephen Chung
23b5bc4bd9 Prevent errors when using alternative error printout style. 2020-09-18 12:31:41 +08:00
Stephen Chung
b795ce9f45 Refine docs. 2020-09-18 11:52:23 +08:00
Stephen Chung
206f21c26f
Merge pull request #56 from schungx/plugins_dev
Add combine_with_exported_module and a type cast fix for constants.
2020-09-18 11:49:39 +08:00
Stephen Chung
92be487e80 Implement constants via calling the constant. 2020-09-17 20:27:45 -05:00
Stephen Chung
c07c4561eb Remove unused_variables. 2020-09-17 20:27:45 -05:00
Stephen Chung
5e4ba9c016 Swich back to assert_eq! for token stream tests. 2020-09-17 20:27:45 -05:00
Stephen Chung
c692cd7e35 Fix tests. 2020-09-16 21:53:22 -05:00
Stephen Chung
3dc599c936 Streamline rhai_generate. 2020-09-16 21:53:22 -05:00
Stephen Chung
1060ff35fd Fix tests. 2020-09-16 21:53:22 -05:00
Stephen Chung
d1d3aaf374 Add cast to type for constants to avoid mis-typing. 2020-09-16 21:53:22 -05:00
Stephen Chung
7ceb624ec1 Add combine_with_exported_module. 2020-09-16 21:53:22 -05:00
Stephen Chung
c63f30a6a2 Fix tests. 2020-09-16 21:53:22 -05:00
Stephen Chung
52298bd96c Streamline rhai_generate. 2020-09-16 21:53:22 -05:00
Stephen Chung
654da2db8a Fix tests. 2020-09-16 21:53:22 -05:00
Stephen Chung
d57ce9c050 Remove warning about unused constants in modules. 2020-09-16 21:53:22 -05:00
Stephen Chung
6126f0cb10 Add cast to type for constants to avoid mis-typing. 2020-09-16 21:53:22 -05:00
Stephen Chung
f1d85ae99c Add combine_with_exported_module. 2020-09-16 21:53:22 -05:00
Stephen Chung
6dc5a81d53 Add cast to type for constants to avoid mis-typing. 2020-09-16 21:50:49 -05:00
Stephen Chung
848bdf3f01 Add combine_with_exported_module. 2020-09-16 21:50:44 -05:00
Stephen Chung
aed70db303 Revert "Delete benchmark.yml"
This reverts commit d547562c14.
2020-09-15 12:30:40 +08:00
Stephen Chung
d547562c14
Delete benchmark.yml 2020-09-15 12:29:10 +08:00
Stephen Chung
b0d86d8bf2 Revert "Delete benchmark.yml"
This reverts commit 83a2b40107.
2020-09-15 12:23:57 +08:00
Stephen Chung
c2a6fd5796 Merge branch 'master' of https://github.com/schungx/rhai 2020-09-15 12:22:05 +08:00
Stephen Chung
7f8269c288 Add bug fixes. 2020-09-15 12:21:51 +08:00
Stephen Chung
83a2b40107
Delete benchmark.yml 2020-09-15 12:19:26 +08:00
Stephen Chung
29124a8543 Restore benchmark.yml. 2020-09-15 12:14:57 +08:00
Stephen Chung
f69cd44f1a Merge branch 'master' of https://github.com/schungx/rhai 2020-09-15 11:26:03 +08:00
Stephen Chung
88e788208b
Merge pull request #57 from Eliah-Lakhin/set-fn-4-mut-bug
Fixes bug in Module::set_fn_4_mut
2020-09-15 11:24:16 +08:00
Ilya Lakhin
4bb1a34abb Fixes bug in Module::set_fn_4_mut 2020-09-15 10:14:34 +07:00
Stephen Chung
2221d523f0
Merge pull request #232 from schungx/master
Refine plugins.
2020-09-14 22:34:13 +08:00
Stephen Chung
db59aed14e Fix bug in optimizer for if statements with empty true blocks. 2020-09-14 22:24:55 +08:00
Stephen Chung
5879f467d8
Merge pull request #55 from jhwgh1968/getters_setters
Reorganize get/set/index code into FnSpecialAccess
2020-09-13 17:37:28 +08:00
J Henry Waugh
381e80179e Re-bless ui tests 2020-09-12 22:57:17 -05:00
J Henry Waugh
b1f23ac3ed Enforce signatures on user get/set/index functions 2020-09-12 22:48:40 -05:00
J Henry Waugh
0a2f93439e Reorganize get/set/index code into FnSpecialAccess 2020-09-12 22:48:34 -05:00
J Henry Waugh
335d853060 Unit tests for rename + getter/setter/indexer 2020-09-12 22:46:45 -05:00
J Henry Waugh
18032ab8a0 Unit test for multiple renames 2020-09-12 22:46:45 -05:00