Skip to content

Commit

Permalink
[json] Fix host-diff.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfusik committed Feb 27, 2024
1 parent 1b5d9a4 commit 236c914
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions GenC.fu
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,7 @@ public class GenC : GenCCpp
switch (klass.Class.Id) {
case FuId.None:
case FuId.ArrayPtrClass:
case FuId.JsonElementClass:
if (klass is FuDynamicPtrType) {
this.SharedRelease = true;
Write("FuShared_Release");
Expand Down
1 change: 1 addition & 0 deletions libfut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9707,6 +9707,7 @@ bool GenC::writeDestructMethodName(const FuClassType * klass)
switch (klass->class_->id) {
case FuId::none:
case FuId::arrayPtrClass:
case FuId::jsonElementClass:
if (dynamic_cast<const FuDynamicPtrType *>(klass)) {
this->sharedRelease = true;
write("FuShared_Release");
Expand Down
1 change: 1 addition & 0 deletions libfut.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10014,6 +10014,7 @@ bool WriteDestructMethodName(FuClassType klass)
switch (klass.Class.Id) {
case FuId.None:
case FuId.ArrayPtrClass:
case FuId.JsonElementClass:
if (klass is FuDynamicPtrType) {
this.SharedRelease = true;
Write("FuShared_Release");
Expand Down
1 change: 1 addition & 0 deletions libfut.js
Original file line number Diff line number Diff line change
Expand Up @@ -10359,6 +10359,7 @@ export class GenC extends GenCCpp
switch (klass.class.id) {
case FuId.NONE:
case FuId.ARRAY_PTR_CLASS:
case FuId.JSON_ELEMENT_CLASS:
if (klass instanceof FuDynamicPtrType) {
this.#sharedRelease = true;
this.write("FuShared_Release");
Expand Down

0 comments on commit 236c914

Please sign in to comment.