Commit Graph

132 Commits

Author SHA1 Message Date
J Henry Waugh
3fd3da6bfc Improve diagonstics on return_raw return mismatches 2020-08-23 17:24:18 -05:00
J Henry Waugh
7c273e0aac Add missing skip submodule test 2020-08-23 17:24:18 -05:00
J Henry Waugh
65009dd193 Block #[cfg] attributes on inner constants 2020-08-21 23:26:25 -05:00
J Henry Waugh
55870e7b37 Add #[cfg] support in submodules 2020-08-21 23:26:25 -05:00
J Henry Waugh
382e60e91a Move UI tests to separate tests file 2020-08-21 23:26:25 -05:00
J Henry Waugh
708c0f385e Block #[cfg] attributes on exported or inner functions 2020-08-21 23:26:25 -05:00
J Henry Waugh
7962c6dc52 codegen: add rhai_mod and submodule support 2020-08-20 22:21:41 -05:00
J Henry Waugh
c87da31328 codegen: prevent name duplication in Rust or Rhai 2020-08-19 23:12:43 -05:00
J Henry Waugh
8efde3c7ce codegen: Rhai names cannot contain dot 2020-08-19 22:16:00 -05:00
J Henry Waugh
f1dc2cbf18 codegen: update tests for new name attribute behavior 2020-08-19 21:09:12 -05:00
Stephen Chung
767c39d974 Simplify rhai_fn attribute. 2020-08-17 23:35:04 +08:00
Stephen Chung
371c131395 Fix CI. 2020-08-17 09:44:28 +08:00
Stephen Chung
810514dd31 Add get/set/index_get/index_set parameters to rhai_fn. 2020-08-17 00:13:52 +08:00
Stephen Chung
e75d91e9bf Bring more functions into modules in plugins via rhai_fn(name) attribute. 2020-08-16 23:41:59 +08:00
Stephen Chung
31a05f8c48 Revise treatment of name parameter. 2020-08-16 18:24:42 +08:00
Stephen Chung
7eb75f6790
Merge pull request #35 from jhwgh1968/plugins
Convert args length check to debug assert
2020-08-16 11:29:03 +08:00
J Henry Waugh
bcf14025a7 Add rhai_fn nested attribute and skip fn parameter 2020-08-15 21:51:45 -05:00
J Henry Waugh
3ccc08b6e0 Convert args length check to debug assert 2020-08-15 14:25:19 -05:00
J Henry Waugh
7fcbfcc7fd codegen: explicit import of format! macro 2020-08-14 19:37:25 -05:00
J Henry Waugh
b27ebb318d Rearrange imports to support no_std 2020-08-13 23:04:30 -05:00
J Henry Waugh
e77dc4cc34 Fix missing import in test_functions 2020-08-13 22:07:37 -05:00
Stephen Chung
631c4be064 rhai::FnAccess -> FnAccess to enable use in internal code. 2020-08-13 14:57:23 +08:00
J Henry Waugh
28572544d8 Split register export macro, add Engine support 2020-08-12 23:36:35 -05:00
J Henry Waugh
6d11fdcd18 codegen: replace downcast_clone with more efficient mem::take 2020-08-11 19:05:52 -05:00
J Henry Waugh
07a4541949 export_fn: add return_raw attribute 2020-08-09 14:19:47 -05:00
J Henry Waugh
1df5d05239 export_fn: allow duplicate Rust names 2020-08-08 10:34:00 -05:00
J Henry Waugh
7410f40c92 export_fn: add "name" parameter 2020-08-07 21:19:23 -05:00
J Henry Waugh
be315aebaf Fix breakage due to write_lock() 2020-08-06 18:36:19 -05:00
Stephen Chung
dd6b6cd49f Fix codegen and tests to new API changes. 2020-08-06 14:10:27 +08:00
J Henry Waugh
3136188801 Improve proc macro hygiene 2020-08-02 19:27:35 -05:00
Stephen Chung
73cda2d4f9 rustfmt. 2020-08-02 15:39:08 +08:00
J Henry Waugh
d01203cb5d New Procedural Macros Crate v0.1 2020-08-01 11:52:32 -05:00