mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-01 07:57:21 -04:00
Resource (#2939)
* 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:
@@ -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);
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user