Changeset 2600 for code/branches/buildsystem2/src/cpptcl/CppTcl.h
- Timestamp:
- Jan 29, 2009, 7:04:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/src/cpptcl/CppTcl.h
r1505 r2600 70 70 public: 71 71 result(Tcl_Interp *interp); 72 72 73 73 operator bool() const; 74 74 operator double() const; … … 171 171 throw tcl_error("Too few arguments."); 172 172 } 173 173 174 174 std::string methodName(Tcl_GetString(objv[1])); 175 175 … … 471 471 interpreter(Tcl_Interp *, bool owner = true); 472 472 ~interpreter(); 473 473 474 474 void make_safe(); 475 475 476 476 Tcl_Interp * get() const { return interp_; } 477 477 478 // free function definitions 479 478 // free function definitions 479 480 480 template <typename R> 481 481 void def(std::string const &name, R (*f)(), … … 634 634 } 635 635 636 // free script evaluation 636 // free script evaluation 637 637 details::result eval(std::string const &script); 638 638 details::result eval(std::istream &s); … … 838 838 throw tcl_error(interp_); 839 839 } 840 840 841 841 return details::result(interp_); 842 842 }
Note: See TracChangeset
for help on using the changeset viewer.