Debug build improvements (#1170)

This commit is contained in:
LagoLunatic
2026-08-16 12:09:07 -04:00
committed by GitHub
parent 80c7719636
commit e08dff3c73
26 changed files with 1445 additions and 33 deletions
+4
View File
@@ -15,6 +15,7 @@ class cCcD_TriAttr;
class cCcD_AabAttr;
class cCcD_CylAttr;
class cCcD_SphAttr;
typedef struct _GXColor GXColor;
enum cCcD_AtSPrm_e {
/* 0x01 */ cCcD_AtSPrm_Set_e = 0x01,
@@ -590,6 +591,9 @@ public:
virtual cCcD_GObjInf* GetGObjInf() { return NULL; }
virtual cCcD_ShapeAttr const* GetShapeAttr() const { return NULL; }
virtual cCcD_ShapeAttr* GetShapeAttr() { return NULL; }
#ifdef DEBUG
virtual void Draw(GXColor const&) {}
#endif
void ct() {
mFlags = 0;
}
+8
View File
@@ -20,6 +20,12 @@ public:
/* 0x2804 */ int mObjTgCount;
/* 0x2808 */ int mObjCoCount;
/* 0x280C */ int mObjCount;
#if DEBUG
int mObjAtDrawCount;
int mObjTgDrawCount;
int mObjCoDrawCount;
int mObjDrawCount;
#endif
/* 0x2810 */ cCcD_DivideArea mDivideArea;
/* 0x2850 vtable */
@@ -63,6 +69,8 @@ public:
virtual void SetCoGCorrectProc(cCcD_Obj*, cCcD_Obj*);
}; // Size = 0x2850
#if !DEBUG
STATIC_ASSERT(sizeof(cCcS) == 0x2854);
#endif
#endif /* C_CC_S_H */
+4
View File
@@ -165,4 +165,8 @@ inline f32 cM3d_LenSq(const Vec* a, const Vec* b) {
return VECSquareDistance(a, b);
}
#ifdef DEBUG
bool cM3d_UpMtx(const Vec& param_1, Mtx param_2);
#endif
#endif