/[ascend]/trunk/pygtk/interface/type.cpp
ViewVC logotype

Diff of /trunk/pygtk/interface/type.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 222 by johnpye, Wed Dec 21 00:14:13 2005 UTC revision 223 by johnpye, Fri Jan 27 08:18:43 2006 UTC
# Line 152  Type::getSimulation(SymChar sym){ Line 152  Type::getSimulation(SymChar sym){
152      // Perform the instantiation (C compile etc):      // Perform the instantiation (C compile etc):
153      /*Instance *i = Instantiate(getInternalType()->name, sym.getInternalType(),      /*Instance *i = Instantiate(getInternalType()->name, sym.getInternalType(),
154                                   0, SymChar("default_self").getInternalType()); */                                   0, SymChar("default_self").getInternalType()); */
155      Instance *i = SimsCreateInstance(getInternalType()->name, sym.getInternalType(), 0, SymChar("default_self").getInternalType());      Instance *i = SimsCreateInstance(getInternalType()->name, sym.getInternalType(), e_normal, SymChar("default_self").getInternalType());
156            
157      if(i==NULL){      if(i==NULL){
158          throw runtime_error("Failed to create instance");          throw runtime_error("Failed to create instance");

Legend:
Removed from v.222  
changed lines
  Added in v.223

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22