Browse Source

Avoid generating properties when generating QuickJS register code.

pull/1865/head
Joao Matos 10 months ago
parent
commit
2bef56609f
  1. 5
      src/Generator/Generators/QuickJS/QuickJSSources.cs

5
src/Generator/Generators/QuickJS/QuickJSSources.cs

@ -221,6 +221,11 @@ namespace CppSharp.Generators.Cpp @@ -221,6 +221,11 @@ namespace CppSharp.Generators.Cpp
WriteLine($"JS_CFUNC_DEF(\"{function.Name}\", {maxArgs}, {callbackId}),");
}
public override bool VisitProperty(Property property)
{
return true;
}
public override bool VisitEvent(Event @event)
{
var getterId = $"callback_event_getter_{GetCIdentifier(Context, @event)}";

Loading…
Cancel
Save