uxn core: enum -> const int; kencc does not like the same idents
This commit is contained in:
parent
5dcf31beec
commit
f3bc19a3e7
16
src/uxn.c
16
src/uxn.c
|
@ -12,14 +12,14 @@ WITH REGARD TO THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define OPC(opc, init, body) {\
|
#define OPC(opc, init, body) {\
|
||||||
case 0x00|opc: {enum{_2=0,_r=0};init body;} break;\
|
case 0x00|opc: {const int _2=0,_r=0;init body;} break;\
|
||||||
case 0x20|opc: {enum{_2=1,_r=0};init body;} break;\
|
case 0x20|opc: {const int _2=1,_r=0;init body;} break;\
|
||||||
case 0x40|opc: {enum{_2=0,_r=1};init body;} break;\
|
case 0x40|opc: {const int _2=0,_r=1;init body;} break;\
|
||||||
case 0x60|opc: {enum{_2=1,_r=1};init body;} break;\
|
case 0x60|opc: {const int _2=1,_r=1;init body;} break;\
|
||||||
case 0x80|opc: {enum{_2=0,_r=0};int k=uxn.wst.ptr;init uxn.wst.ptr= k;body;} break;\
|
case 0x80|opc: {const int _2=0,_r=0;int k=uxn.wst.ptr;init uxn.wst.ptr= k;body;} break;\
|
||||||
case 0xa0|opc: {enum{_2=1,_r=0};int k=uxn.wst.ptr;init uxn.wst.ptr= k;body;} break;\
|
case 0xa0|opc: {const int _2=1,_r=0;int k=uxn.wst.ptr;init uxn.wst.ptr= k;body;} break;\
|
||||||
case 0xc0|opc: {enum{_2=0,_r=1};int k=uxn.rst.ptr;init uxn.rst.ptr= k;body;} break;\
|
case 0xc0|opc: {const int _2=0,_r=1;int k=uxn.rst.ptr;init uxn.rst.ptr= k;body;} break;\
|
||||||
case 0xe0|opc: {enum{_2=1,_r=1};int k=uxn.rst.ptr;init uxn.rst.ptr= k;body;} break;\
|
case 0xe0|opc: {const int _2=1,_r=1;int k=uxn.rst.ptr;init uxn.rst.ptr= k;body;} break;\
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Microcode */
|
/* Microcode */
|
||||||
|
|
Loading…
Reference in New Issue