Siva Annamalai 2017-02-01 10:38:21 -08:00
parent 3fa3964a70
commit b25d59ebb4
2 changed files with 17 additions and 0 deletions

View file

@ -6,6 +6,7 @@
#include "bin/directory.h"
#include "bin/eventhandler.h"
#include "bin/platform.h"
#include "bin/utils.h"
#include "bin/thread.h"
@ -24,5 +25,15 @@ void SetSystemTempDirectory(const char* system_temp) {
Directory::SetSystemTemp(system_temp);
}
void SetExecutableName(const char* executable_name) {
Platform::SetExecutableName(executable_name);
}
void SetExecutableArguments(int script_index, char** argv) {
Platform::SetExecutableArguments(script_index, argv);
}
} // namespace bin
} // namespace dart

View file

@ -27,6 +27,12 @@ bool ShouldCaptureStdout();
// Should Stderr events be captured?
bool ShouldCaptureStderr();
// Set the executable name used by Platform.executable.
void SetExecutableName(const char* executable_name);
// Set the arguments used by Platform.executableArguments.
void SetExecutableArguments(int script_index, char** argv);
} // namespace bin
} // namespace dart