File tree Expand file tree Collapse file tree 6 files changed +739
-11
lines changed Expand file tree Collapse file tree 6 files changed +739
-11
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " byondapi"
3
- version = " 0.5.12 "
3
+ version = " 0.5.13 "
4
4
authors = [
" tigercat2000 <[email protected] >" ]
5
5
edition = " 2021"
6
6
description = " Idiomatic Rust bindings for BYONDAPI"
@@ -20,9 +20,9 @@ inventory = "0.3.19"
20
20
num_enum = " 0.7.3"
21
21
22
22
[features ]
23
- default = [" byond-516-1648 " ]
23
+ default = [" byond-516-1651 " ]
24
24
byond-515-1621 = [
25
25
" byondapi-macros/old-crash-workaround" ,
26
26
" byondapi-sys/byond-515-1621" ,
27
27
]
28
- byond-516-1648 = [" byondapi-sys/byond-516-1648 " ]
28
+ byond-516-1651 = [" byondapi-sys/byond-516-1651 " ]
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ pub use inventory;
13
13
#[ macro_use]
14
14
pub mod error;
15
15
pub mod map;
16
- #[ cfg( feature = "byond-516-1648 " ) ]
16
+ #[ cfg( feature = "byond-516-1651 " ) ]
17
17
pub mod pixloc;
18
- #[ cfg( feature = "byond-516-1648 " ) ]
18
+ #[ cfg( feature = "byond-516-1651 " ) ]
19
19
pub mod runtime;
20
20
pub use error:: Error ;
21
21
Original file line number Diff line number Diff line change @@ -243,6 +243,10 @@ impl ByondValue {
243
243
unsafe { byond ( ) . ByondValue_DecRef ( & self . 0 ) }
244
244
}
245
245
246
+ pub fn decrement_tempref ( & mut self ) {
247
+ unsafe { byond ( ) . ByondValue_DecTempRef ( & self . 0 ) }
248
+ }
249
+
246
250
pub fn get_refcount ( & self ) -> Result < u32 , Error > {
247
251
let mut result = 0u32 ;
248
252
unsafe { map_byond_error ! ( byond( ) . Byond_Refcount ( & self . 0 , & mut result) ) ? } ;
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " byondapi-sys"
3
- version = " 0.12.2 "
3
+ version = " 0.12.3 "
4
4
authors = [
" tigercat2000 <[email protected] >" ]
5
5
edition = " 2021"
6
6
description = " Raw bindgen bindings for byondapi"
@@ -24,6 +24,6 @@ bindgen = "0.71"
24
24
doxygen-rs = " 0.4"
25
25
26
26
[features ]
27
- default = [" byond-516-1648 " ]
27
+ default = [" byond-516-1651 " ]
28
28
byond-515-1621 = []
29
- byond-516-1648 = []
29
+ byond-516-1651 = []
You can’t perform that action at this time.
0 commit comments