mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-15 22:57:12 +02:00
Implement double when binding constants with Sqrat.
Minor chnage in buffer when throwing an exception.
This commit is contained in:
@ -115,6 +115,20 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Binds an enumeration value
|
||||
///
|
||||
/// \param name Name of the value as it will appear in Squirrel
|
||||
/// \param val Value to bind
|
||||
///
|
||||
/// \return The Enumeration itself so the call can be chained
|
||||
///
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
virtual Enumeration& Const(const SQChar* name, const double val) {
|
||||
BindValue<double>(name, val, false);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Binds an enumeration value
|
||||
///
|
||||
|
Reference in New Issue
Block a user