Platform-specific Cpp Library. Provides some platform-specific functions for the C++ target, such as conversion from Haxe types to native types and vice-versa.

Static methods

@:has_untyped@:value({ quietFail : false })@:keepstatic_loadPrime(lib:String, prim:String, signature:String, quietFail:Bool = false):Dynamic

@:has_untyped@:keepstaticinlinebytesReference(s:String):Bytes

Returns bytes referencing the content of a string. Use with extreme caution - changing constant strings will crash. Changing one string can cause others to change unexpectedly. Only really safe if you are using it read-only or if it comes from stringReference above

@:has_untyped@:keepstaticgetBinDirectory():String

@:has_untyped@:keepstaticgetDllExtension():String

@:keepstatichaxeToNeko(v:Dynamic):Dynamic

This function is used to make porting from neko to cpp easy. It does not need to do anything because the c-code can work with any Dynamic

@:has_untyped@:keepstaticload(lib:String, prim:String, nargs:Int):Dynamic

Load and return a Cpp primitive from a DLL library.

@:has_untyped@:keepstaticloadLazy(lib:String, prim:String, nargs:Int):Dynamic

Tries to load, and always returns a valid function, but the function may throw if called.

@:keepstaticnekoToHaxe(v:Dynamic):Dynamic

This function is used to make porting from neko to cpp easy. It does not need to do anything because the c-code can work with any Dynamic

@:has_untyped@:keepstaticprint(v:Dynamic):Void

Print the specified value on the default output.

@:has_untyped@:keepstaticprintln(v:Dynamic):Void

Print the specified value on the default output followed by a newline character.

@:has_untyped@:keepstaticpushDllSearchPath(inPath:String):Void

@:keep@:noDebugstaticinlinerethrow(inExp:Dynamic):Void

@:has_untyped@:keepstaticsetFloatFormat(inFormat:String):Void

@:has_untyped@:keepstaticstringReference(inBytes:Bytes):String

@:has_untyped@:keepstaticunloadAllLibraries():Int

Unloaded all dynamic libraries in reverse order of loading. Returns the number of libraries unloaded.