git » swiftpm » main » tree

[main] / Sources / c_snikket / iinclude / HaxeCBridge.h

// Generated by Haxe 4.3.3
#ifndef INCLUDED_HaxeCBridge
#define INCLUDED_HaxeCBridge

#ifndef HXCPP_H
#ifdef HXCPP_API_LEVEL
#include <hxcpp.h>
#else
#include <hx/Native.h>
#endif
#endif

#ifndef INCLUDED_cbce7ceea2d0df24
#define INCLUDED_cbce7ceea2d0df24
#include "HaxeCBridge.h"
#endif



class HXCPP_CLASS_ATTRIBUTES HaxeCBridge
{
	public:
		static void mainThreadInit(::cpp::Function< bool  () > isMainThreadCb);

		static void mainThreadRun(::cpp::Function< void  () > processNativeCalls,::cpp::Function< bool  () > hasPendingNativeCalls,::cpp::Function< void  (const char*) > onUnhandledException);

		static void** retainHaxeArray(::cpp::VirtualArray haxeArray);

		static void* retainHaxeObject( ::Dynamic haxeObject);

		static const char* retainHaxeString(::String haxeString);

		static void retainPtr(::cpp::Int64 ptrInt64, ::Dynamic haxeObject);

		static void releaseHaxePtr(void * haxePtr);

		static bool isMainThread();

		static void endMainThread(bool waitOnScheduledEvents);

		static void wakeMainThread();

};


#endif /* INCLUDED_HaxeCBridge */