Signed-off-by: Petr Bred <p.bred@samsung.com>
return res;
}
-int doInjection()
+int checkInjection()
{
int res = -1;
char *env = nullptr;
#ifndef __INJETION_INTERFACE_H__
#define __INJETION_INTERFACE_H__
-int doInjection();
+int checkInjection();
#endif // __INJETION_INTERFACE_H__
int main(int argc, char *argv[])
{
- int res = doInjection();
+ /* checkInjection checks dotnet-launcher run mode,
+ if it contains DOTNET_LAUNCHER_INJECT variable, it injects library.
+ At the moment, this mechanism is used only when the Memory Profiler is started.
+ */
+ int res = checkInjection();
if (res != 0) {
return 1;
}