Refactor inuint_byref to testct_byref to support using status reporting. Works as before.

This commit is contained in:
Russell
2011-11-02 17:28:09 +00:00
parent 03957a411c
commit 2aef37576c
3 changed files with 91 additions and 69 deletions

View File

@@ -1,2 +1,17 @@
//#pragma select handler
#include <xs1.h>
/* TODO Currently complier does not support inline select functions, hense this is in a seperate file to ensure this is not the case */
#pragma select handler
void testct_byref(chanend c, unsigned &isCt) ;
inline void testct_byref(chanend c, unsigned &isCt)
{
if (testct(c))
{
isCt = 1;
}
else
{
isCt = 0;
}
}
//void testct_byref(chanend c, unsigned &isCt) ;