Implemented WaitTillAllowed for all classes

This commit is contained in:
smallmodel 2023-08-19 18:10:38 +02:00
parent 7a57a25c58
commit 4001de1dde
No known key found for this signature in database
GPG key ID: A96F163ED4891440

View file

@ -85,6 +85,20 @@ class Event;
{ \
return classname::ClassInfo.WaitTillDefined(s); \
} \
bool classname::WaitTillAllowed(str s) \
{ \
for(ClassDef* c = classinfo(); c; c = c->super) { \
if (c->WaitTillDefined(s)) { return true; } \
} \
return false; \
} \
bool classname::WaitTillAllowed(const_str s) \
{ \
for(ClassDef* c = classinfo(); c; c = c->super) { \
if (c->WaitTillDefined(s)) { return true; } \
} \
return false; \
} \
ResponseDef<classname> classname::Responses[] =
# define CLASS_PROTOTYPE(classname) \
@ -101,6 +115,8 @@ class Event;
static void RemoveWaitTill(const_str s); \
static bool WaitTillDefined(str s); \
static bool WaitTillDefined(const_str s); \
bool WaitTillAllowed(str s); \
bool WaitTillAllowed(const_str s); \
static ResponseDef<classname> Responses[]
#else