Hey where does ENGINE_API defined?

i see it being used everywhere in source code but definition

where’s the definition and what it even does?

In \Engine\Intermediate\Build\Win64\UE4Editor\Development\Engine\SharedPCH.Engine.ShadowErrors.h

#define ENGINE_API DLLIMPORT

And DLLIMPORT is defined depending on the platform.
For example, for windows:

#define DLLIMPORT __declspec(dllimport)

More info in https://docs.microsoft.com/en-us/cpp/cpp/declspec?view=vs-2019.

thank you for help. actually I’m trying to get to the definition in their Github codebase:
https://github.com/EpicGames/UnrealEngine/tree/release/Engine
tried for searching like “#define ENGINE_API” , couldn’t find any.