mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 00:41:24 +00:00
- backend update from GZDoom.
* Vulkan backend updated. * zlib replaced with miniz. * FileReader is now 64 bit capable. * jpeg replaced with stb-image. * CMake project warnings fixed.
This commit is contained in:
parent
a3aa2e877e
commit
4a87003408
144 changed files with 21908 additions and 60392 deletions
|
@ -830,4 +830,16 @@ unsigned GetVirtualIndex(PClass *cls, const char *funcname);
|
|||
VMFunction *func = clss->Virtuals.Size() > VIndex? clss->Virtuals[VIndex] : nullptr; \
|
||||
if (func != nullptr)
|
||||
|
||||
#define IFOVERRIDENVIRTUALPTRNAME(self, clsname, funcname) \
|
||||
static VMFunction *orig_func = nullptr; \
|
||||
static unsigned VIndex = ~0u; \
|
||||
if (VIndex == ~0u) { \
|
||||
PClass *cls = PClass::FindClass(clsname); \
|
||||
VIndex = GetVirtualIndex(cls, #funcname); \
|
||||
orig_func = cls->Virtuals.Size() > VIndex? cls->Virtuals[VIndex] : nullptr; \
|
||||
assert(VIndex != ~0u); \
|
||||
} \
|
||||
auto *clss = self->GetClass(); \
|
||||
VMFunction *func = clss->Virtuals.Size() > VIndex? clss->Virtuals[VIndex] : nullptr; \
|
||||
if (func && func != orig_func )
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue