Add feature tags to signify engine float precision
This commit is contained in:
parent
a7937fe54c
commit
8c108177d7
2 changed files with 12 additions and 0 deletions
|
|
@ -374,6 +374,16 @@ bool OS::has_feature(const String &p_feature) {
|
|||
#endif // DEBUG_ENABLED
|
||||
#endif // TOOLS_ENABLED
|
||||
|
||||
#ifdef REAL_T_IS_DOUBLE
|
||||
if (p_feature == "double") {
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
if (p_feature == "single") {
|
||||
return true;
|
||||
}
|
||||
#endif // REAL_T_IS_DOUBLE
|
||||
|
||||
if (sizeof(void *) == 8 && p_feature == "64") {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue