The INT_Command
object declaration below is part of an Objective-C class that is bridged into my Swift 2.0 project. Only my Swift classes do not recognise it, because it needs recoding as an... enum
? Right?
I am aware there are existing posts on this subject, but INT_Command
is a very specific #define
statement that I cannot find any guidance on:
#define INT_Command(command,integ,data) ((((UInt16)command&INT_CMDMASK)<<INT_CMDOFFSET)|(((UInt16)integ&INT_INTMASK)<<INT_INTOFFSET)|(((UInt16)data&INT_DATAMASK)<<INT_DATAOFFSET))
Thank you for reading.