collector.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _KJSCOLLECTOR_H_
00025 #define _KJSCOLLECTOR_H_
00026
00027 #define KJS_MEM_LIMIT 500000
00028
00029 #include "global.h"
00030
00031 #include <stdio.h>
00032
00033 namespace KJS {
00034
00038 class Collector {
00039
00040 Collector();
00041 public:
00052 static void* allocate(size_t s);
00057 static bool collect();
00058 static int size();
00059 static bool outOfMemory() { return memoryFull; }
00060
00061 #ifdef KJS_DEBUG_MEM
00062
00065 static void finalCheck();
00066 #endif
00067
00068 private:
00069 static bool memoryFull;
00070 };
00071
00072 }
00073
00074 #endif
This file is part of the documentation for kjs Library Version 3.2.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Mar 4 22:44:07 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003