Closed sonygod closed 1 year ago
In this case, you probably want to use @:native
or @:nativeTypeCode
.
@:nativeName
was a meta I specifically added to retain the Haxe namespaces. But if you use @:native("std::chrono::steady_clock")
, that should do the trick!
You can also use @:nativeTypeCode
to inject type arguments, check out:
https://github.com/RobertBorghese/reflaxe.CPP/blob/main/std/cxx/std/chrono/TimePoint.hx
yeah.
package cxx.std.chrono;
import cxx.Auto;
@:cxxStd
@:cppStd
@:native("std::chrono::steady_clock")
@:include("chrono",true)
@:valueType
extern class SteadyClock {
public static function now(): IAuto;
}
will generate