mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-22 16:57:12 +02:00
Replaced the numeric limits from previous legacy implementation with the one provided by C++11.
Added a few extra constants for numeric limits.
This commit is contained in:
@@ -5,13 +5,16 @@
|
||||
#include "Base/Shared.hpp"
|
||||
#include "Library/Random.hpp"
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
#include <limits>
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
namespace SqMod {
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Vector4 Vector4::NIL = Vector4(0);
|
||||
const Vector4 Vector4::MIN = Vector4(NumLimit< Vector4::Value >::Min);
|
||||
const Vector4 Vector4::MAX = Vector4(NumLimit< Vector4::Value >::Max);
|
||||
const Vector4 Vector4::MIN = Vector4(std::numeric_limits< Vector4::Value >::min());
|
||||
const Vector4 Vector4::MAX = Vector4(std::numeric_limits< Vector4::Value >::max());
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQChar Vector4::Delim = ',';
|
||||
@@ -534,4 +537,4 @@ void Register_Vector4(HSQUIRRELVM vm)
|
||||
);
|
||||
}
|
||||
|
||||
} // Namespace:: SqMod
|
||||
} // Namespace:: SqMod
|
||||
|
Reference in New Issue
Block a user