mirror of
https://github.com/zeldaret/tp
synced 2026-08-20 06:06:50 -04:00
Debug version now builds OK and all_source compiles (#2343)
* Fix missing arg to JUT_ASSERT * Fix some MWCC version diff errors * Compile m_Do_ext, d_demo, actor_mng * Add VSCode task to quickly switch between versions * Unlink magLift for debug * Update the hash of the debug dol The old cbea5fa... hash here was for the dol generated by the alf2dol.py script, which produces incorrect alignment. The dol with the new hash can be obtained by using `dtk elf2dol` to convert the debug .alf file to a dol. The DOL now builds OK. * Fix all debug REL dtor splits All RELs now also build OK, meaning `ninja build/ShieldD/ok` now succeeds. * Add genMessage declarations to all HIO subclasses * Fixing more compilation errors * m_Do_mtx 100% on debug Cannot be linked due to weak function name mangling? * Improve various matches * Fix all remaining compilation errors * Fix new compilation errors from main * Fix retail regression * Link f_pc_profile_lst
This commit is contained in:
@@ -4,13 +4,8 @@
|
||||
#include "string.h"
|
||||
|
||||
namespace std {
|
||||
inline size_t strlen(const char* str) {
|
||||
return ::strlen(str);
|
||||
}
|
||||
using ::strlen;
|
||||
using ::strcpy;
|
||||
}; // namespace std
|
||||
|
||||
inline char* strcpy(char* dest, const char* src) {
|
||||
return ::strcpy(dest, src);
|
||||
}
|
||||
} // namespace std
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -73,8 +73,13 @@ inline int __fpclassifyd(double __value) {
|
||||
#define FLT_MAX_EXP 128
|
||||
#define FLT_MAX_10_EXP 38
|
||||
|
||||
#ifdef DEBUG
|
||||
#define FLT_MAX 3.4028235e38f
|
||||
#define FLT_EPSILON 1.1920929e-7f
|
||||
#else
|
||||
#define FLT_MAX (*(float*) __float_max)
|
||||
#define FLT_EPSILON (*(float*) __float_epsilon)
|
||||
#endif
|
||||
|
||||
#define DBL_MANT_DIG 53
|
||||
#define DBL_DIG 15
|
||||
@@ -83,4 +88,4 @@ inline int __fpclassifyd(double __value) {
|
||||
#define DBL_MAX_EXP 1024
|
||||
#define DBL_MAX_10_EXP 308
|
||||
|
||||
#endif /* _MSL_COMMON_FLOAT_H */
|
||||
#endif /* _MSL_COMMON_FLOAT_H */
|
||||
|
||||
@@ -23,7 +23,7 @@ char* strcpy(char* dst, const char* src);
|
||||
size_t strlen(const char* str);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif /* _MSL_COMMON_STRING_H */
|
||||
#endif /* _MSL_COMMON_STRING_H */
|
||||
|
||||
Reference in New Issue
Block a user