[Tinyos-devel] Combine function for bool
Morten Tranberg Hansen
mth at daimi.au.dk
Wed Apr 1 07:14:17 PDT 2009
Hi all,
Is there any specific reason for not having a combine function for bool
types defined in tos.h. If not, I suggest to add:
typedef uint8_t bool @combine("bcombine");
bool bcombine(bool b1, bool b2) @safe() {
return b1 && b2;
}
Instead of just having:
typedef uint8_t bool;
best,
- Morten.
--
Morten Hansen, http://mortent.dk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-devel/attachments/20090401/5035a7e5/attachment.htm
More information about the Tinyos-devel
mailing list