Changeset a2db10 for molecuilder/src


Ignore:
Timestamp:
Oct 14, 2009, 11:12:42 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
13ecff
Parents:
c419f2
Message:

performCriticalExit() must not be defined static.

Note that static global functions are only visible within the specific source file. Removed static keyword.

Location:
molecuilder/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/helpers.cpp

    rc419f2 ra2db10  
    66
    77#include "helpers.hpp"
     8
     9#include "memoryusageobserver.hpp"
    810
    911/********************************************** helpful functions *********************************/
     
    202204 * Frees all memory registered by the memory observer and calls exit(225) afterwards.
    203205 */
    204 static void performCriticalExit() {
     206void performCriticalExit() {
    205207  map<void*, size_t> pointers = MemoryUsageObserver::getInstance()->getPointersToAllocatedMemory();
    206208  for (map<void*, size_t>::iterator runner = pointers.begin(); runner != pointers.end(); runner++) {
  • molecuilder/src/helpers.hpp

    rc419f2 ra2db10  
    5151int CompareDoubles (const void * a, const void * b);
    5252double * ReturnFullMatrixforSymmetric(double *cell_size);
    53 static void performCriticalExit();
     53void performCriticalExit();
    5454
    5555/********************************************** helpful template functions *********************************/
Note: See TracChangeset for help on using the changeset viewer.