Commit 7d8d59e0 authored by thomas's avatar thomas
Browse files

no message

git-svn-id: 4d9ac71a-51e6-0310-8455-cad1006bcd31
parent f43ebabb
......@@ -82,6 +82,7 @@ Version history:
- SndObj interface now also available for cygwin and BCC
- added Makefiles for OSX/darwin (originally done by Adam T. Lindsay)
- added prepend and append functions to AtomList class
- added CanbeBool and GetABool function
- PD: fixed bug for DSP objects having no signal inlets
......@@ -441,6 +441,11 @@ public:
//! Check for an integer and get its value
static int GetAInt(const t_atom &a) { return (int)GetAFlint(a); }
//! Check whether the atom can be represented as a boolean
static bool CanbeBool(const t_atom &a) { return CanbeInt(a); }
//! Check for an boolean and get its value
static bool GetABool(const t_atom &a) { return GetAInt(a) != 0; }
//! Check whether the atom is a float or integer (depending on the system)
static bool IsFlint(const t_atom &a) { return IsFloat(a) || IsInt(a); }
//! Check for a float or integer and get its value
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment