Commit Graph

112 Commits

Author SHA1 Message Date
Stephen Chung
bd094d95b4 Fix codegen doc error. 2020-11-17 13:11:31 +08:00
Stephen Chung
df72d324ba Fix tests. 2020-11-17 12:40:12 +08:00
Stephen Chung
a19865d811 Add global/internal parameters to rhai_fn. 2020-11-17 12:09:56 +08:00
Stephen Chung
c919ee4e46 Fine tune hash map sizes. 2020-11-15 13:49:54 +08:00
Stephen Chung
cbd7ed2ca7 Fix test. 2020-10-28 22:30:35 +08:00
Stephen Chung
2c7c719cd5 Minor cleanup before release. 2020-10-22 12:26:44 +08:00
Stephen Chung
09f8b13f2d Fix test output. 2020-10-20 11:10:46 +08:00
Stephen Chung
643ecc86a3 Minor refactor 2020-10-20 09:21:41 +08:00
Stephen Chung
46b92c9d1f Allow NativeCallContext in function arguments. 2020-10-18 21:47:34 +08:00
Stephen Chung
29374a8ce7 Update version. 2020-10-16 17:48:50 +08:00
Stephen Chung
a6fa94d946 Rhai function names with $ and . no longer fail. 2020-10-15 14:36:10 +08:00
Stephen Chung
8abb3c5203 Fix ui tests. 2020-10-15 14:06:54 +08:00
Stephen Chung
3c9250b0bf Skip wrapping if function returns Dynamicc. 2020-10-15 13:28:22 +08:00
Stephen Chung
d35c216465 Add README's. 2020-10-07 22:56:21 +08:00
Stephen Chung
0ba219352d Make doc tests runnable. 2020-10-07 22:51:43 +08:00
Stephen Chung
e8d5f78f88 Simplify code. 2020-10-01 23:31:27 +08:00
Stephen Chung
45a290f0ea Change doc test from no_run to ignore. 2020-09-30 23:39:46 +08:00
Stephen Chung
2290c72de1 Fix tests. 2020-09-30 23:27:41 +08:00
Stephen Chung
a04ed02b54 Simplify macro system and update doc comments. 2020-09-30 22:55:40 +08:00
Stephen Chung
ea78fa2b27 Change SharedPluginFunction to Shared<FnPlugin> 2020-09-29 13:06:48 +08:00
Stephen Chung
91886e30d2 Fix test output. 2020-09-26 12:28:28 +08:00
Stephen Chung
984ef48741 Fix test. 2020-09-26 12:17:16 +08:00
Stephen Chung
0d7d54e21c Simplify rename checking. 2020-09-26 12:08:15 +08:00
Stephen Chung
371b7fd00b Fix tests. 2020-09-26 00:46:47 +08:00
Stephen Chung
a2551a4650 Check rename collisions with special names. 2020-09-26 00:30:30 +08:00
Stephen Chung
6b13e266b9 Allow actual function name that is the same as a #[rhai_fn(name = "...")] rename. 2020-09-25 23:07:18 +08:00
Stephen Chung
5718f454c4
Merge pull request #60 from jhwgh1968/plugins
Remove redundant clones in codegen
2020-09-23 11:54:57 +08:00
J Henry Waugh
d65042088e Remove redundant clones in codegen 2020-09-22 21:38:59 -05:00
Stephen Chung
235ad66d2b Flatten types in functions. 2020-09-22 22:19:21 +08:00
Stephen Chung
5a37497a22 Flatten type groups and types in parentheses. 2020-09-22 21:29:44 +08:00
J Henry Waugh
c389014df7 Run cargo fmt for loose ends 2020-09-20 12:40:21 -05:00
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
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
20a453b3cc Enable String parameters. 2020-09-19 18:18:40 +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
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
3dc599c936 Streamline rhai_generate. 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
6dc5a81d53 Add cast to type for constants to avoid mis-typing. 2020-09-16 21:50:49 -05:00