Changeset fe52ab1 in tol
- Timestamp:
- Mar 23, 2011, 9:34:07 AM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- b6a9243
- Parents:
- 3a849c8
- File:
-
- 1 edited
-
tol/btol/bgrammar/str.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/bgrammar/str.cpp
r3a849c8 rfe52ab1 36 36 #include <tol/tol_bsymboltable.h> 37 37 #include <tol/tol_bsetgra.h> 38 #include <tol/tol_bcodgra.h> 38 39 #include <tol/tol_bnameblock.h> 39 40 #include <tol/tol_bclass.h> … … 318 319 if(function_) 319 320 { 320 function_->DecNRefs(); 321 //VBR: This line is added to catch possible errors during a quarentine period 322 # ifndef NDEBUG 323 if(!System() && !function_->NRefs()) 324 { 325 Warning(BText("\nStruct creator cannot be destroyed due to it is " 326 "already referenced ")+function_->NRefs()+ " times\n"); 327 } 328 # endif 321 function_->DecNRefs(); 329 322 BGrammar::DelObject(function_); 330 DESTROY(function_); 323 BUserFunCode* uCode = function_->GetCode(); 324 DESTROY(uCode); 331 325 } 332 326 BGrammar::DelObject(this); … … 633 627 { 634 628 BText dump = "Struct "; 635 dump += FullName() + " = {";629 dump += FullName() + " {\n "; 636 630 if(field_->HasValue()) 637 631 { … … 640 634 for(n=0; n<field_->Size(); n++) 641 635 { 642 if(arg.HasName()) { arg += ", "; }636 if(arg.HasName()) { arg += ", \n"; } 643 637 arg += (*field_)[n].Dump() ; 644 638 } 645 639 dump += arg; 646 640 } 647 dump += " }";641 dump += "\n};"; 648 642 return(dump); 649 643 }
Note: See TracChangeset
for help on using the changeset viewer.
