Terence Lee
088a636192
allow private constructor. also add docopt example
...
You can do this by setting:
```
def initialize(helix, ...) {
}
```
Right now this only works on the constructor and only unexported is
supported.
2018-06-14 00:09:09 -07:00
Godfrey Chan
e799d58dd0
Make multi-class work
...
This commit overhauls the macro, using a two-pass parse/codegen
approach that makes it easier for us to implement some long-desired
features. This commit adds support for multiple classes in a single
macro.
2017-04-20 18:17:07 -07:00
Godfrey Chan
894fc06a6c
Use *const T and *mut T more consistently
...
Some context in https://github.com/rust-lang/rfcs/pull/68
2017-04-08 15:40:42 -07:00
Godfrey Chan
8281778249
Fix Rust and C warnings
2017-04-08 15:40:42 -07:00
Godfrey Chan
ac3119aa0b
Switch to using a new cstr!() macro
...
Unlike the previous Cstring::new approach, this approach doesn't
allocate. This will become important when we start using rb_raise
(which takes a C string but longjmps and therefore doesn't clean up
the memory).
(we got this implementation from @ubsan -- thanks!)
2017-04-08 12:01:58 -07:00
Godfrey Chan
6b79cba0d8
Add class methods, get some Duration tests passing
...
Based on Peter's work in #41
2017-03-15 20:28:40 -07:00
Godfrey Chan
f897066f5f
Allow initialize to take arguments
2017-03-15 16:25:59 -07:00
Godfrey Chan
134efc7a5a
Separate allocation and initialization
2017-03-15 16:25:59 -07:00
Peter Wagenet
b7cd276874
Revert changes to initialization process.
...
These were causing some tests to fail.
This reverts commits c524d34335
and
98251104a4
.
2017-03-15 14:07:56 -07:00
Godfrey Chan
98251104a4
Allow initialize to take arguments
2017-03-14 19:26:27 -07:00
Godfrey Chan
c524d34335
Separate allocation and initialization
2017-03-14 19:26:27 -07:00
Godfrey Chan
c9774d32d9
Fix reopen macro and examples
2017-03-02 17:55:08 -08:00
Godhuda
9a67ce7e19
WIP Duration
...
Fix extern static warning
See https://github.com/rust-lang/rust/issues/35112
2017-02-16 15:49:04 -08:00
Godhuda
a19b5df18a
Initial commit
2016-05-06 15:01:20 -05:00