Changeset 916
- Timestamp:
- 03/14/10 01:51:55 (5 months ago)
- Location:
- trunk/engine/Script
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/engine/Script/Core.cpp
r915 r916 170 170 { 171 171 return LUA_VERSION; 172 } 173 174 /** 175 * Print a message to all registered output streams. 176 * @param s The message to broadcast (a newline will be appended automatically). 177 */ 178 void Core::Print(const std::string &s) 179 { 180 BOOST_FOREACH(boost::shared_ptr<std::ostream> &out, outs) { 181 *out << s << std::endl; 182 } 172 183 } 173 184 -
trunk/engine/Script/Core.h
r902 r916 75 75 76 76 public: 77 void Print(const std::string &s); 78 77 79 void Compile(const std::string &chunk); 78 80 void CallAndPrint();
