extern "C" int realMain(int argc, char *argv[], const char* mode)
{
+ // 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;
+ }
+
int i;
bool standaloneMode = false;
char* standalonePath = nullptr;
int main(int argc, char *argv[])
{
- /* 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;
- }
-
return realMain(argc, argv, "default");
}