forked from LeenkxTeam/LNXSDK
		
	
		
			
	
	
		
			24 lines
		
	
	
		
			396 B
		
	
	
	
		
			Haxe
		
	
	
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
		
			396 B
		
	
	
	
		
			Haxe
		
	
	
	
	
	
| 
								 | 
							
								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
							 |