forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
23
Kha/Backends/Kinc-hxcpp/khacpp/hxcpp/StaticRegexp.hx
Normal file
23
Kha/Backends/Kinc-hxcpp/khacpp/hxcpp/StaticRegexp.hx
Normal file
@ -0,0 +1,23 @@
|
||||
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
|
Reference in New Issue
Block a user