mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-05-30 08:41:24 +00:00
optimizations and small fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20507 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8a7e040a2f
commit
da7886eddf
97 changed files with 5460 additions and 2637 deletions
|
@ -32,6 +32,7 @@
|
|||
#ifndef _GSWDynamicElement_h__
|
||||
#define _GSWDynamicElement_h__
|
||||
|
||||
GSWEB_EXPORT SEL evaluateConditionInContextSEL;
|
||||
|
||||
//====================================================================
|
||||
@interface GSWDynamicElement : GSWElement
|
||||
|
@ -53,4 +54,20 @@
|
|||
-(BOOL)evaluateCondition:(id)condition
|
||||
inContext:(GSWContext*)context;
|
||||
@end
|
||||
|
||||
static inline
|
||||
BOOL GSWDynamicElement_evaluateValueInContext(GSWDynamicElement* element,Class standardClass,
|
||||
GSWIMP_BOOL imp,GSWAssociation* condition,GSWContext* context)
|
||||
{
|
||||
if (imp && object_get_class(element)==standardClass)
|
||||
{
|
||||
return (*imp)(element,evaluateConditionInContextSEL,
|
||||
condition,context);
|
||||
}
|
||||
else
|
||||
return [element evaluateCondition:condition
|
||||
inContext:context];
|
||||
};
|
||||
|
||||
|
||||
#endif //_GSWDynamicElement_h__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue