Changeset 1255 for code/branches/console/src/core/CommandExecutor.cc
- Timestamp:
- May 12, 2008, 2:50:21 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/core/CommandExecutor.cc
r1230 r1255 48 48 ConsoleCommandShortcutGeneric(keyword3, createExecutor((FunctorStatic*)0, "bind", AccessLevel::User)); 49 49 50 ConsoleCommandShortcutExtern( exec, AccessLevel::None);50 ConsoleCommandShortcutExtern(source, AccessLevel::None); 51 51 ConsoleCommandShortcutExtern(echo, AccessLevel::None); 52 52 ConsoleCommandShortcutExtern(puts, AccessLevel::None); … … 56 56 ConsoleCommandShortcutExtern(write, AccessLevel::None); 57 57 58 void exec(const std::string& filename)58 void source(const std::string& filename) 59 59 { 60 60 static std::set<std::string> executingFiles; … … 63 63 if (it != executingFiles.end()) 64 64 { 65 COUT(1) << "Error: Recurring execcommand in \"" << filename << "\". Stopped execution." << std::endl;65 COUT(1) << "Error: Recurring source command in \"" << filename << "\". Stopped execution." << std::endl; 66 66 return; 67 67 } … … 73 73 if (!file.is_open()) 74 74 { 75 COUT(1) << "Error: Couldn't executefile \"" << filename << "\"." << std::endl;75 COUT(1) << "Error: Couldn't open file \"" << filename << "\"." << std::endl; 76 76 return; 77 77 }
Note: See TracChangeset
for help on using the changeset viewer.