[Y-devel] CLASSDEF
Mark Thomas mark at www.y-windows.org
Fri Feb 27 19:10:09 GMT 2004
James Harr wrote:
> Hello everyone,
>
> This weekend when I'm going to see if I can start to document some of the
> nifty stuff that is in Y that can be used (not client side, but server side).
> I was going through trying to figure out what CLASSDEF does... I finally
> found it:
> #define CLASSDEF
>
> Simply nothing...
>
> Now just out of curiosity (asking Mark or anyone that knows for sure), is
> CLASSDEF simply a way to keep stuff clear in code? Or will it be used for
> something complex and fancy later on, or is it just there for the sake of
> being there?
It's a tag marker. Classes need to be initialised on start-up and
placed into the index of class names. To do this, the source tree is
searched for CLASSDEF tags, and the file Y/main/defaults.c is made that
initialises and adds all the classes.
Regards,
Mark.
--
|| Mark Thomas
|| www.y-windows.org
||
||
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved