functionalscript 0.0.415 → 0.0.416

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,7 +35,7 @@ impl<T: Class> CObject<T> {
35
35
  };
36
36
 
37
37
  #[allow(non_snake_case)]
38
- extern "stdcall" fn QueryInterface(
38
+ extern "system" fn QueryInterface(
39
39
  this: &Object<T::Interface>,
40
40
  riid: &u128,
41
41
  ppv_object: &mut *const Object,
@@ -51,7 +51,7 @@ impl<T: Class> CObject<T> {
51
51
  }
52
52
 
53
53
  #[allow(non_snake_case)]
54
- extern "stdcall" fn AddRef(this: &Object<T::Interface>) -> u32 {
54
+ extern "system" fn AddRef(this: &Object<T::Interface>) -> u32 {
55
55
  unsafe { T::to_cobject(this) }
56
56
  .counter
57
57
  .fetch_add(1, Ordering::Relaxed)
@@ -59,7 +59,7 @@ impl<T: Class> CObject<T> {
59
59
  }
60
60
 
61
61
  #[allow(non_snake_case)]
62
- extern "stdcall" fn Release(this: &Object<T::Interface>) -> u32 {
62
+ extern "system" fn Release(this: &Object<T::Interface>) -> u32 {
63
63
  let t = unsafe { T::to_cobject(this) };
64
64
  match t.counter.fetch_sub(1, Ordering::Relaxed) {
65
65
  1 => {
@@ -3,11 +3,11 @@ use crate::{hresult::HRESULT, Object, GUID};
3
3
  #[allow(non_snake_case)]
4
4
  #[repr(C)]
5
5
  pub struct IUnknown<I: 'static> {
6
- pub QueryInterface: unsafe extern "stdcall" fn(
6
+ pub QueryInterface: unsafe extern "system" fn(
7
7
  this: &Object<I>,
8
8
  riid: &GUID,
9
9
  ppv_object: &mut *const Object,
10
10
  ) -> HRESULT,
11
- pub AddRef: unsafe extern "stdcall" fn(this: &Object<I>) -> u32,
12
- pub Release: unsafe extern "stdcall" fn(this: &Object<I>) -> u32,
11
+ pub AddRef: unsafe extern "system" fn(this: &Object<I>) -> u32,
12
+ pub Release: unsafe extern "system" fn(this: &Object<I>) -> u32,
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functionalscript",
3
- "version": "0.0.415",
3
+ "version": "0.0.416",
4
4
  "description": "FunctionalScript is a functional subset of JavaScript",
5
5
  "main": "module.f.cjs",
6
6
  "scripts": {