You are here: start » gsupermacro

Back

GSuperMacro (Java-like 'super' for GObject)

GSuperMacro is a very small set of macros that implement a Java-like 'super' meant to call the super' implementation of a method, even if the sub-class overrides it.

A sub-class has to use the G_SUPER_METHOD(…) to declare a parent' method that will be overridden but that is to be saved. Methods are overridden using the G_OVERRIDE_METHOD(…) macro. Super methods can be called using the G_SUPER(…) macro.

An example of usage is provided with the source code

Download

GSuperMacro.zip (Macro under Zlib license, example under GPLv2 License)

gsupermacro/start.txt · Last modified: 2010/12/17 13:03 by attila
Kleine Websites, die ein Wiki als CMS verwenden.de