Code: Select all
[[guarded]]
[[independent_guard]]
The 'independent_guard' was discovered when I added a state guard as part of a server task interface implementation like :
Code: Select all
select {
..
case (state == READY) => display_if.refresh_display():
refreshDisplay();
break;
...
}
Code: Select all
../src/rgb-matrix-xcore.xc: In function `display_server':
../src/rgb-matrix-xcore.xc:73: error: select case on has guard without [[independent_guard]] case attribute or [[guarded]] interface function attribute
xmake[1]: *** [.build_Release/src/rgb-matrix-xcore.xc.o] Error 1
xmake: *** [bin/Release/rgb-matrix-xcore.xe] Error 2
I would love for some light to be shone on these attributes and their correct use.
P.S. I rephrased and moved this question from the startkit thread as figured it was worthy of it's own.
regards
Al