I have code that for a set of operator command functions uses a macro to define the function, rather than having the function() declaration in each module. This is done to standardize and simplify the function declarations across quite a number of individual code modules. The following example shows the format of this.
The problem with this is that FN_PROCESS_LIST_COMMAND does not appear in the function list for the module when UE parses it for syntax highlighting. The module is saved as a .c file so that UE does recognise it correctly for syntax highlighting.
I've tried adding this line the c_cplusplus.uew word file in order to get the function identified for the function list but it is still not being displayed in the list.
Any help appreciated.
Thanks...
Frank
Code: Select all
#undef CURR_FUNC
#define CURR_FUNC FN_PROCESS_LIST_COMMAND
OPC_PROTOTYPE(FN_PROCESS_LIST_COMMAND)
{
I've tried adding this line the c_cplusplus.uew word file in order to get the function identified for the function list but it is still not being displayed in the list.
Code: Select all
/TGFindStr = "%[^t ]+OPC_PROTOTYPE([A-Z0-9_]+^)"
Any help appreciated.
Thanks...
Frank