24 lines
396 B
Haxe
Raw Permalink Normal View History

2025-01-22 16:18:30 +01:00
package hxcpp;
#if (hxcpp_api_level>=330)
class StaticRegexp { }
#else
@:cppFileCode( 'extern "C" int regexp_register_prims();')
@:buildXml("
<target id='haxe'>
<lib name='${HXCPP}/lib/${BINDIR}/libregexp${LIBEXTRA}${LIBEXT}'/>
</target>
")
@:keep class StaticRegexp
{
static function __init__()
{
untyped __cpp__("regexp_register_prims();");
}
}
#end