* matching Do_destroy from resource.cpp

* add missing constants from `float.c`

* add numeric_limits for double

* set TObject::reset for each version in stb.cpp

* improve debug matching
This commit is contained in:
kipcode66
2025-12-15 20:00:16 -05:00
committed by GitHub
parent 1901b7b78f
commit dcbdd76f0b
12 changed files with 203 additions and 38 deletions
+7 -3
View File
@@ -15,14 +15,14 @@ public:
JGadget_outMessage(MessageFunc fn, const char* file, int line);
~JGadget_outMessage();
JGadget_outMessage& operator<<(int param_1) { return *this << (s32)param_1; }
JGadget_outMessage& operator<<(int param_1) { return *this << (signed long)param_1; }
JGadget_outMessage& operator<<(u16);
JGadget_outMessage& operator<<(unsigned int);
JGadget_outMessage& operator<<(u8 param_1) { return *this << (char)param_1; }
JGadget_outMessage& operator<<(const char* str);
JGadget_outMessage& operator<<(char);
JGadget_outMessage& operator<<(s32);
JGadget_outMessage& operator<<(u32);
JGadget_outMessage& operator<<(signed long);
JGadget_outMessage& operator<<(unsigned long);
JGadget_outMessage& operator<<(const void*);
private:
@@ -45,6 +45,10 @@ private:
JGadget_outMessage out(JGadget_outMessage::warning, __FILE__, line); \
out << msg << (arg);
#define JGADGET_WARNMSG3(line, msg, arg1, arg2, arg3) \
JGadget_outMessage out(JGadget_outMessage::warning, __FILE__, line); \
out << msg << (arg1) << (arg2) << (arg3);
#define JGADGET_WARNMSG4(line, msg, arg1, arg2, arg3, arg4) \
JGadget_outMessage out(JGadget_outMessage::warning, __FILE__, line); \
out << msg << (arg1) << (arg2) << (arg3) << (arg4);
+10 -3
View File
@@ -29,6 +29,9 @@ struct TVector {
T* mPtr;
};
typedef T* iterator;
typedef const T* const_iterator;
TVector(Allocator const& allocator) {
mAllocator = allocator;
pBegin_ = NULL;
@@ -111,9 +114,10 @@ struct TVector {
return pBegin_ + diff;
}
T* begin() const { return pBegin_; }
T* end() const { return pEnd_; }
iterator begin() { return pBegin_; }
const_iterator begin() const { return pBegin_; }
iterator end() { return pEnd_; }
const_iterator end() const { return pEnd_; }
u32 size() const {
if (pBegin_ == 0) {
@@ -178,6 +182,9 @@ struct TVector_pointer : TVector_pointer_void {
TVector_pointer(const TAllocator<void*>& allocator) : TVector_pointer_void(allocator) {}
~TVector_pointer() {}
typedef T* iterator;
typedef const T* const_iterator;
const T* begin() const { return (const T*)TVector_pointer_void::begin(); }
T* begin() { return (T*)TVector_pointer_void::begin(); }
@@ -33,7 +33,7 @@ public:
virtual TFunctionValueAttributeSet getAttributeSet() = 0;
virtual void initialize() = 0;
virtual void prepare() = 0;
virtual f64 getValue(f64 arg1) = 0;
virtual TValue getValue(f64 arg1) = 0;
static ExtrapolateParameter toFunction_outside(int);
@@ -180,6 +180,7 @@ public:
inline void operator=(const TData& rhs) { f32data = rhs.f32data; }
u32 get_unsignedInteger() const { return u32data; }
u32 get_outside() const { return u32data; }
f64 get_value() const { return f32data; }
union {
+14
View File
@@ -43,7 +43,21 @@ public:
virtual ~TObject();
void setFlag_operation(u8, int);
#if PLATFORM_SHIELD && !DEBUG
void reset(void const* arg1) {
bSequence_ = 0;
mStatus = STATUS_STILL;
pSequence_next = arg1;
u32Wait_ = 0;
}
#else
void reset(void const*);
#endif
#if !DEBUG
void reset() { reset(NULL); }
#else
void reset();
#endif
bool forward(u32);
virtual void do_begin();
virtual void do_end();