Commit Graph

1447 Commits

Author SHA1 Message Date
Stephen Chung
26a622b201
Merge pull request #33 from jhwgh1968/fix
Fix lots of import and resolution issues
2020-08-14 13:39:15 +08:00
J Henry Waugh
b27ebb318d Rearrange imports to support no_std 2020-08-13 23:04:30 -05:00
Stephen Chung
d2ea981fac Merge branch 'master' into plugins 2020-08-14 11:45:52 +08:00
J Henry Waugh
e77dc4cc34 Fix missing import in test_functions 2020-08-13 22:07:37 -05:00
Stephen Chung
b956639c2a Move some math functions into plugins. 2020-08-13 14:57:46 +08:00
Stephen Chung
631c4be064 rhai::FnAccess -> FnAccess to enable use in internal code. 2020-08-13 14:57:23 +08:00
Stephen Chung
bb334eecc7
Merge pull request #32 from jhwgh1968/plugins
Split function register macro, add Engine register support
2020-08-13 13:07:02 +08:00
J Henry Waugh
fdcaa90cd9 Clean up plugin module for no_module macro support 2020-08-12 23:57:57 -05:00
J Henry Waugh
0fb61eab00 Fix plugin test 2020-08-12 23:47:57 -05:00
J Henry Waugh
a25f6b35a1 Add new macro_register test which runs in no_std 2020-08-12 23:46:12 -05:00
J Henry Waugh
1a2ef7b531 Fix macro_unroll test 2020-08-12 23:40:50 -05:00
J Henry Waugh
28572544d8 Split register export macro, add Engine support 2020-08-12 23:36:35 -05:00
Stephen Chung
36865593ec
Merge pull request #31 from jhwgh1968/plugins
codegen: replace downcast_clone with more efficient mem::take
2020-08-12 08:49:07 +08:00
J Henry Waugh
59e3ca0e79 Remove Dynamic::downcast_clone 2020-08-11 19:09:49 -05:00
J Henry Waugh
6d11fdcd18 codegen: replace downcast_clone with more efficient mem::take 2020-08-11 19:05:52 -05:00
Stephen Chung
a5b4d61dff Fix docs. 2020-08-11 13:46:09 +08:00
Stephen Chung
2d4b85f67d Add cusotm syntax. 2020-08-10 12:03:22 +08:00
Stephen Chung
7506aee5c6
Merge pull request #29 from jhwgh1968/macro_unroll
Create functional test for generated bulk exports
2020-08-10 12:02:58 +08:00
Stephen Chung
f98cea4f20
Merge pull request #30 from jhwgh1968/plugins
export_fn: add return_raw attribute
2020-08-10 09:27:12 +08:00
J Henry Waugh
07a4541949 export_fn: add return_raw attribute 2020-08-09 14:19:47 -05:00
J Henry Waugh
ce8fbe40c4 Fold into fully generic form 2020-08-09 12:13:02 -05:00
J Henry Waugh
3fa252e732 Fold generate_add once more 2020-08-09 12:04:50 -05:00
J Henry Waugh
a45b1d406f Add only_i32 feature support 2020-08-09 11:47:11 -05:00
J Henry Waugh
dc7b36fd11 Fix for stable 2020-08-09 11:42:37 -05:00
J Henry Waugh
a24d11324c Create functional test for generated bulk operations 2020-08-09 11:21:29 -05:00
Stephen Chung
564d3bc339 Add more closure tests. 2020-08-09 22:12:50 +08:00
Stephen Chung
dbf5cd13c8
Merge pull request #28 from Eliah-Lakhin/closure-bugs
False-positive capturing prevention bug fix
2020-08-09 22:05:40 +08:00
Ilya Lakhin
d84ef1a0d1 CLosures test fix 2020-08-09 18:55:01 +07:00
Ilya Lakhin
39ee74112c no-closure feature issue fixed 2020-08-09 18:42:33 +07:00
Ilya Lakhin
20cff87e14 False-positive capturing prevention bug fix 2020-08-09 18:35:29 +07:00
Stephen Chung
c5937f990e
Merge pull request #26 from jhwgh1968/plugins
export_fn: allow duplicate Rust fn names before rename
2020-08-09 10:32:54 +08:00
J Henry Waugh
1df5d05239 export_fn: allow duplicate Rust names 2020-08-08 10:34:00 -05:00
Stephen Chung
126dc58ea5
Merge pull request #213 from schungx/master
Fix closure bug.
2020-08-08 23:22:56 +08:00
Stephen Chung
0e344ff3eb Merge branch 'master' into plugins 2020-08-08 23:01:48 +08:00
Stephen Chung
da3cce58d3 Minor refactor. 2020-08-08 22:59:05 +08:00
Stephen Chung
e66873bb83
Merge pull request #27 from Eliah-Lakhin/capturing-bug
Function names capturing as external variables bug
2020-08-08 22:52:20 +08:00
Ilya Lakhin
9c6584240f Unit test for registered functions in anon function context 2020-08-08 19:09:18 +07:00
Ilya Lakhin
45d021c7ef Function names capturing as external variables bug 2020-08-08 17:55:58 +07:00
Stephen Chung
f68c5a699d Fix sync feature. 2020-08-08 17:04:21 +08:00
Stephen Chung
fbad20eb0d Merge branch 'master' into plugins 2020-08-08 16:26:52 +08:00
Stephen Chung
5a1a141ce3 Improve shared value treatment. 2020-08-08 16:24:10 +08:00
Stephen Chung
f016655414 Simply test error matching. 2020-08-08 16:03:14 +08:00
Stephen Chung
7b258ac410 Add more inlining. 2020-08-08 11:46:30 +08:00
Stephen Chung
2678568073
Merge pull request #25 from jhwgh1968/plugins
export_fn: add "name" parameter
2020-08-08 11:44:02 +08:00
J Henry Waugh
7410f40c92 export_fn: add "name" parameter 2020-08-07 21:19:23 -05:00
Stephen Chung
c86a979601 Refine docs. 2020-08-07 18:40:31 +08:00
Stephen Chung
0b21d80641 Add patterns section. 2020-08-07 11:44:15 +08:00
Stephen Chung
5e6d5e8e80 Expand getter/setter/indexer API. 2020-08-07 11:10:38 +08:00
Stephen Chung
5d908a1153 Set fail-fast to false. 2020-08-07 09:25:52 +08:00
Stephen Chung
1de13b7a03
Merge pull request #24 from jhwgh1968/plugins
Cleanup, breakage fixes, and CI fixes for codegen integration
2020-08-07 09:18:12 +08:00