?? gc-disabled.h
字號:
//@beginlicenses@//@license{Stefan Seefeld}{2004}@//// Permission to use, copy, distribute and modify this software and its // documentation for any purpose is hereby granted without fee, provided that// the above copyright notice appears in all copies and that both that copyright// notice and this permission notice appear in supporting documentation.// // Stefan Seefeld make(s) no representations about the suitability of this// software for any purpose. It is provided "as is" without express or implied// warranty.// // Copyright (C) 2004 Stefan Seefeld////@endlicenses@/* Copyright (C) 2004 Stefan Seefeld Permission to use, copy, distribute and modify this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation.*/#ifndef guard_opencxx_parser_GC_h#define guard_opencxx_parser_GC_h#include <cstdlib>// define dummy replacements for GC allocator operatorsnamespace Opencxx{enum GCPlacement {GC, NoGC};class LightObject {};class Object {};inlineint GcCount(){ return 0;}}inline void* operator new(size_t size, Opencxx::GCPlacement gcp){ return ::operator new(size);}inline void* operator new [](size_t size, Opencxx::GCPlacement gcp){ return ::operator new [](size);}#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -