ConstCharStar.hx 313 B

12345678910111213
  1. package cpp;
  2. abstract ConstCharStar( RawConstPointer<Char> ) to(RawConstPointer<Char>)
  3. {
  4. inline function new(s:String) this = untyped s.__s;
  5. @:from
  6. static public inline function fromString(s:String) return new ConstCharStar(s);
  7. @:to @:extern
  8. public inline function toPointer() return this;
  9. }