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 11[package ]
22name = " byondapi"
3- version = " 0.5.12 "
3+ version = " 0.5.13 "
44authors = [
" tigercat2000 <[email protected] >" ]
55edition = " 2021"
66description = " Idiomatic Rust bindings for BYONDAPI"
@@ -20,9 +20,9 @@ inventory = "0.3.19"
2020num_enum = " 0.7.3"
2121
2222[features ]
23- default = [" byond-516-1648 " ]
23+ default = [" byond-516-1651 " ]
2424byond-515-1621 = [
2525 " byondapi-macros/old-crash-workaround" ,
2626 " byondapi-sys/byond-515-1621" ,
2727]
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;
1313#[ macro_use]
1414pub mod error;
1515pub mod map;
16- #[ cfg( feature = "byond-516-1648 " ) ]
16+ #[ cfg( feature = "byond-516-1651 " ) ]
1717pub mod pixloc;
18- #[ cfg( feature = "byond-516-1648 " ) ]
18+ #[ cfg( feature = "byond-516-1651 " ) ]
1919pub mod runtime;
2020pub use error:: Error ;
2121
Original file line number Diff line number Diff line change @@ -243,6 +243,10 @@ impl ByondValue {
243243 unsafe { byond ( ) . ByondValue_DecRef ( & self . 0 ) }
244244 }
245245
246+ pub fn decrement_tempref ( & mut self ) {
247+ unsafe { byond ( ) . ByondValue_DecTempRef ( & self . 0 ) }
248+ }
249+
246250 pub fn get_refcount ( & self ) -> Result < u32 , Error > {
247251 let mut result = 0u32 ;
248252 unsafe { map_byond_error ! ( byond( ) . Byond_Refcount ( & self . 0 , & mut result) ) ? } ;
Original file line number Diff line number Diff line change 11[package ]
22name = " byondapi-sys"
3- version = " 0.12.2 "
3+ version = " 0.12.3 "
44authors = [
" tigercat2000 <[email protected] >" ]
55edition = " 2021"
66description = " Raw bindgen bindings for byondapi"
@@ -24,6 +24,6 @@ bindgen = "0.71"
2424doxygen-rs = " 0.4"
2525
2626[features ]
27- default = [" byond-516-1648 " ]
27+ default = [" byond-516-1651 " ]
2828byond-515-1621 = []
29- byond-516-1648 = []
29+ byond-516-1651 = []
You can’t perform that action at this time.
0 commit comments