Skip to content

Commit

Permalink
CONTRIBUTING: Clarifies Ref<X> syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Sep 9, 2024
1 parent b3db10d commit f2bb79a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ To improve code compatibility, please use the following syntax:
|:------------------|:------------------------|:---------------------------|
| `&this` | `this` | `THIS_PTR` |
| `GetPointer(obj)` | `*obj` | `GET_PTR(obj)` |
| `Ref<X>.Ptr().a` | `Ref<X>.Ptr()->a` | `Ref<X> REF_DEREF a` |
| `T name[]` | `_cpp_array<T> name` | `ARRAY(T, name)` |
| `T<A, B> N[]` | `_cpp_array<T<A, B>> N` | `ARRAY(T<A, B>, N)` |
| `long` | `long long` | `int64` |
| `obj.Method()` | `obj->Method()` | `obj PTR_DEREF Method()` |
| `obj.Ptr().a` | `obj.Ptr()->a` | `obj REF_DEREF a` |
| `obj.a1.a2` | `obj->a1->a2` | `PTR_ATTRIB2(obj, a1, a2)` |
| `obj.attr` | `obj->attr` | `PTR_ATTRIB(obj, attr)` |
| `str == NULL` | `str == NULL` | `IsNull(str)` |
Expand Down

0 comments on commit f2bb79a

Please sign in to comment.