mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 11:58:13 +00:00
Land https://codereview.chromium.org/2662393002 for Jason.
R=jsimmons@google.com Review-Url: https://codereview.chromium.org/2667183002 .
This commit is contained in:
parent
3fa3964a70
commit
b25d59ebb4
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue