Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: runtime/bin/platform.h

Issue 22565003: Make the values of Platform.executable and Platform.script available to all isolates (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/bin/platform.h
diff --git a/runtime/bin/platform.h b/runtime/bin/platform.h
index 54412bac3209bfcb8a0e4562770f77b05c3ac7e3..144b4e110d2a885bf8af9a5ebfa88f6ff4caba31 100644
--- a/runtime/bin/platform.h
+++ b/runtime/bin/platform.h
@@ -34,7 +34,17 @@ class Platform {
static char** Environment(intptr_t* count);
static void FreeEnvironment(char** env, intptr_t count);
+ // Stores and gets the executable name.
+ static void SetExecutableName(char* executable_name) {
+ executable_name_ = executable_name;
+ }
+ static char* GetExecutableName() {
Bill Hesse 2013/08/07 13:39:44 Could these all be const char*?
Søren Gjesse 2013/08/07 14:37:46 Done.
+ return executable_name_;
+ }
+
private:
+ static char* executable_name_;
+
DISALLOW_ALLOCATION();
DISALLOW_IMPLICIT_CONSTRUCTORS(Platform);
};
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/bin/platform.cc » ('j') | sdk/lib/io/platform_impl.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698