C++17 supports inline variables which allows you to put the definition of a variable in a header file without violating the one definition rule. I have the code below in a header file. When I use Ctrl-dot for the word mui_table_info in a C++ file, slick is unable to find the definition.
Using v23.0.1.2 64-bit no hotfixes.
inline const struct
{
int offset; // byte offset into zone_image struct
int len; // fixed length in bytes if positive, else enum type_e
int source; // identifies where the data is to be copied *from*
uchar data_type;
}
mui_table_info[] =
{ {1,2,3,4}};