Changeset 79 for trunk/src/lua
- Timestamp:
- 06/02/13 00:53:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_state.cc
r78 r79 76 76 } 77 77 78 bool lua::state::do_string( const std::string& code, const std::string& name )78 bool lua::state::do_string( const std::string& code, const std::string& name, int rvalues ) 79 79 { 80 80 lua::stack_guard( this ); … … 85 85 return false; 86 86 } 87 return do_current( name ) == 0;87 return do_current( name, rvalues ) == 0; 88 88 } 89 89 … … 112 112 } 113 113 114 int lua::state::do_current( const std::string& name )115 { 116 int result = lua_pcall(L, 0, 0, 0);114 int lua::state::do_current( const std::string& name, int rvalues ) 115 { 116 int result = lua_pcall(L, 0, rvalues, 0); 117 117 if (result) 118 118 {
Note: See TracChangeset
for help on using the changeset viewer.