Skip to content

Commit

Permalink
Use constructor allocation instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
MAJigsaw77 committed Dec 21, 2024
1 parent 79b7ef1 commit 463f2ef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions hxserial_api/externs/Types.hx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ class Types {}
@:native('SerialDevice')
extern class SerialDevice
{
@:native('SerialDevice')
static function create():SerialDevice;
function new():Void;

var path:cpp.ConstCharStar;
var vID:Int;
Expand All @@ -27,8 +26,7 @@ extern class SerialDevice
@:native('SerialConnection')
extern class SerialConnection
{
@:native('SerialConnection')
static function create():SerialConnection;
function new():Void;

var path:cpp.ConstCharStar;
var baud:Int;
Expand Down

0 comments on commit 463f2ef

Please sign in to comment.