API #defines

I’ve found these throughout the code, whether it be RENDERCORE_API, CORE_API, etc. but all I can tell is it’s a #define. I can’t seem to look at the definition as it’s not in the source code according to Visual Studios. Does anybody know what they mean/do?

That is just defines that have something like __declspec(dllexport) behind it, in other words - it marks what class to export to dll.

These defines are declared on the command line to the compiler by UnrealBuildTool, which is why you can’t find the definition.

In DLL modes, they are declared as either dll export (if compiling that module) or dll import (if compiling another module that depends on that module). In monolithic modes, they are declared empty.

Michael Noland