You are here: start » gsupermacro


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 (Macro under Zlib license, example under GPLv2 License)

gsupermacro/start.txt · Last modified: 2024/05/27 12:22 by
Kleine Websites, die ein Wiki als CMS