Changeset 3196 for code/trunk/src/core/LuaBind.cc
- Timestamp:
- Jun 20, 2009, 9:20:47 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pch (added) merged: 3114-3118,3124-3125,3127-3131,3133,3138-3194
- Property svn:mergeinfo changed
-
code/trunk/src/core/LuaBind.cc
r3068 r3196 31 31 #include <fstream> 32 32 #include <map> 33 34 33 extern "C" { 35 #include <lua.h>36 34 #include <lualib.h> 37 35 } … … 39 37 #include <boost/filesystem.hpp> 40 38 39 #include "util/Debug.h" 41 40 #include "util/String.h" 42 #include "util/Debug.h"43 41 #include "ToluaBindCore.h" 44 42 #include "Core.h" … … 72 70 } 73 71 74 void LuaBind::luaPrint( std::stringstr)72 void LuaBind::luaPrint(const std::string& str) 75 73 { 76 74 output_ += str; … … 84 82 @param luaTags if true, the loaded file gets stripped off luaTags 85 83 */ 86 void LuaBind::loadFile( std::stringfilename, bool luaTags)84 void LuaBind::loadFile(const std::string& filename, bool luaTags) 87 85 { 88 86 boost::filesystem::path filepath(filename); … … 117 115 } 118 116 119 void LuaBind::loadString( std::stringcode)117 void LuaBind::loadString(const std::string& code) 120 118 { 121 119 luaSource_ = code;
Note: See TracChangeset
for help on using the changeset viewer.