StaticRegexp.hx 312 B

12345678910111213141516
  1. package cpp.link;
  2. @:cppFileCode( 'extern "C" int regexp_register_prims();')
  3. @:buildXml("
  4. <target id='haxe'>
  5. <lib name='${HXCPP}/lib/${BINDIR}/libregexp${LIBEXTRA}${LIBEXT}'/>
  6. </target>
  7. ")
  8. @:keep class StaticRegexp
  9. {
  10. static function __init__()
  11. {
  12. untyped __cpp__("regexp_register_prims();");
  13. }
  14. }