Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
31
Src/Wasabi/api/syscb/callbacks/gccb.h
Normal file
31
Src/Wasabi/api/syscb/callbacks/gccb.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
#ifndef _GCCB_H
|
||||
#define _GCCB_H
|
||||
|
||||
#include "syscbi.h"
|
||||
|
||||
namespace GarbageCollectCallback {
|
||||
enum {
|
||||
GARBAGECOLLECT=1,
|
||||
};
|
||||
};
|
||||
|
||||
#define GARBAGECOLLECTCALLBACK_PARENT SysCallbackI
|
||||
class GarbageCollectCallbackI : public GARBAGECOLLECTCALLBACK_PARENT {
|
||||
protected:
|
||||
GarbageCollectCallbackI() {}
|
||||
|
||||
public:
|
||||
virtual int gccb_onGarbageCollect() { return 0; }
|
||||
|
||||
private:
|
||||
virtual FOURCC syscb_getEventType() { return SysCallback::GC; }
|
||||
virtual int syscb_notify(int msg, intptr_t param1=0, intptr_t param2=0) {
|
||||
switch (msg) {
|
||||
case GarbageCollectCallback::GARBAGECOLLECT:
|
||||
return gccb_onGarbageCollect();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue