Those macros are defined by the UBT, and are always in the form MODULENAME_API.
On Windows they handle setting up the DLL export/import declarations correctly; I’m not sure if they do anything on other platforms, as I’m not as familiar with how shared library exports work.