Actually export the C Interface.
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		| @@ -1,20 +1,22 @@ | |||||||
| #include "../src/Random.hpp" | #include "../src/Random.hpp" | ||||||
|  |  | ||||||
| ArbUt::Random* Arbutils_Random_Construct() { return new ArbUt::Random(); } | #define export extern "C" | ||||||
| ArbUt::Random* Arbutils_Random_ConstructWithSeed(uint_fast32_t seed) { return new ArbUt::Random(seed); } |  | ||||||
|  |  | ||||||
| void Arbutils_Random_Destruct(ArbUt::Random* p) { delete p; } | export ArbUt::Random* Arbutils_Random_Construct() { return new ArbUt::Random(); } | ||||||
|  | export ArbUt::Random* Arbutils_Random_ConstructWithSeed(uint_fast32_t seed) { return new ArbUt::Random(seed); } | ||||||
|  |  | ||||||
| float Arbutils_Random_GetFloat(ArbUt::Random* p) { return p->GetFloat(); } | export void Arbutils_Random_Destruct(ArbUt::Random* p) { delete p; } | ||||||
| double Arbutils_Random_GetDouble(ArbUt::Random* p) { return p->GetDouble(); } |  | ||||||
| int32_t Arbutils_Random_Get(ArbUt::Random* p) { return p->Get(); } |  | ||||||
| int32_t Arbutils_Random_GetWithMax(ArbUt::Random* p, int32_t max) { return p->Get(max); } |  | ||||||
| int32_t Arbutils_Random_GetInLimits(ArbUt::Random* p, int32_t min, int32_t max) { return p->Get(min, max); } |  | ||||||
|  |  | ||||||
| uint32_t Arbutils_Random_GetUnsigned(ArbUt::Random* p) { return p->GetUnsigned(); } | export float Arbutils_Random_GetFloat(ArbUt::Random* p) { return p->GetFloat(); } | ||||||
| uint32_t Arbutils_Random_GetUnsignedWithMax(ArbUt::Random* p, uint32_t max) { return p->GetUnsigned(max); } | export double Arbutils_Random_GetDouble(ArbUt::Random* p) { return p->GetDouble(); } | ||||||
| uint32_t Arbutils_Random_GetUnsignedInLimits(ArbUt::Random* p, uint32_t min, uint32_t max) { | export int32_t Arbutils_Random_Get(ArbUt::Random* p) { return p->Get(); } | ||||||
|  | export int32_t Arbutils_Random_GetWithMax(ArbUt::Random* p, int32_t max) { return p->Get(max); } | ||||||
|  | export int32_t Arbutils_Random_GetInLimits(ArbUt::Random* p, int32_t min, int32_t max) { return p->Get(min, max); } | ||||||
|  |  | ||||||
|  | export uint32_t Arbutils_Random_GetUnsigned(ArbUt::Random* p) { return p->GetUnsigned(); } | ||||||
|  | export uint32_t Arbutils_Random_GetUnsignedWithMax(ArbUt::Random* p, uint32_t max) { return p->GetUnsigned(max); } | ||||||
|  | export uint32_t Arbutils_Random_GetUnsignedInLimits(ArbUt::Random* p, uint32_t min, uint32_t max) { | ||||||
|     return p->GetUnsigned(min, max); |     return p->GetUnsigned(min, max); | ||||||
| } | } | ||||||
|  |  | ||||||
| uint_fast32_t Arbutils_Random_GetSeed(ArbUt::Random* p) { return p->GetSeed(); } | export uint_fast32_t Arbutils_Random_GetSeed(ArbUt::Random* p) { return p->GetSeed(); } | ||||||
		Reference in New Issue
	
	Block a user