mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
34 lines
541 B
C++
34 lines
541 B
C++
#pragma once
|
|
|
|
#include "TestVm.h"
|
|
|
|
#define TEST_VERIFY(a) \
|
|
if(!(a)) \
|
|
{ \
|
|
int* p = 0; \
|
|
(*p) = 0; \
|
|
}
|
|
|
|
class CTest
|
|
{
|
|
public:
|
|
virtual ~CTest() = default;
|
|
virtual void Execute(CTestVm&) = 0;
|
|
|
|
enum Float : uint32
|
|
{
|
|
_Min = 0xFFFFFFFF,
|
|
_Minus8 = 0xC1000000,
|
|
_Minus1 = 0xBF800000,
|
|
_0 = 0000000000,
|
|
_1Half = 0x3F000000,
|
|
_1Quarter = 0x3E800000,
|
|
_1 = 0x3F800000,
|
|
_2 = 0x40000000,
|
|
_4 = 0x40800000,
|
|
_8 = 0x41000000,
|
|
_64 = 0x42800000,
|
|
_256 = 0x43800000,
|
|
_Max = 0x7FFFFFFF,
|
|
};
|
|
};
|