package cpp
Available on cpp
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_loadPrime(lib:String, prim:String, signature:String, quietFail:Bool = false):DynamicstaticinlinebytesReference(s:String):BytesReturns 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
staticgetBinDirectory():StringstaticgetDllExtension():StringstatichaxeToNeko(v:Dynamic):DynamicThis 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
staticload(lib:String, prim:String, nargs:Int):DynamicLoad and return a Cpp primitive from a DLL library.
staticloadLazy(lib:String, prim:String, nargs:Int):DynamicTries to load, and always returns a valid function, but the function may throw if called.
staticnekoToHaxe(v:Dynamic):DynamicThis 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
staticprint(v:Dynamic):VoidPrint the specified value on the default output.
staticprintln(v:Dynamic):VoidPrint the specified value on the default output followed by a newline character.
staticpushDllSearchPath(inPath:String):Voidstaticinlinerethrow(inExp:Dynamic):VoidstaticsetFloatFormat(inFormat:String):VoidstaticstringReference(inBytes:Bytes):StringstaticunloadAllLibraries():IntUnloaded all dynamic libraries in reverse order of loading. Returns the number of libraries unloaded.
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cpp/Lib.html