Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Documentation » Fixes to "Callback macros" documentation
Fixes to "Callback macros" documentation [message #43588] Wed, 10 September 2014 11:02 Go to next message
mikini is currently offline  mikini
Messages: 2
Registered: September 2014
Location: Tjæreborg, Denmark
Junior Member

Hi there in Upp scope.

While studying Upp callbacks I stumbled across some minor errors and ambiguities in the callback macros documentation.

Below is a patch against current head revision correcting these.

Regards
Mikkel


Core/src.tpp:
*Fix argument errors in THISBACK2() and PTEBACK2().
*Use m as method argument in all macros.

Index: Core/src.tpp/Callbacks$en-us.tpp
============================================================ =======
--- Core/src.tpp/Callbacks$en-us.tpp (revision 7655)
+++ Core/src.tpp/Callbacks$en-us.tpp (working copy)
@@ -470,37 +470,37 @@
pointer.&]
[s3; &]
[s0; &]
-[s0;:`:`:THISBACK`(x`):%- [* THISBACK]([*@3 x])&]
-[s2; Expands to callback(this, `&CLASSNAME`::[@3 x]).&]
-[s7; [%-*C@3 x]-|Name of method.&]
+[s0;:`:`:THISBACK`(m`):%- [* THISBACK]([*@3 m])&]
+[s2; Expands to callback(this, `&CLASSNAME`::[@3 m]).&]
+[s7; [%-*C@3 m]-|Name of method.&]
[s3; &]
[s4; &]
-[s0;:`:`:THISBACK1`(x`, arg`):%- [* THISBACK1]([*@3 x], [*@3 arg])&]
-[s2; Expands to callback1(this, `&CLASSNAME`::[@3 x], [@3 arg]).&]
-[s7; [%-*C@3 x]-|Name of method.&]
+[s0;:`:`:THISBACK1`(m`, arg`):%- [* THISBACK1]([*@3 m], [*@3 arg])&]
+[s2; Expands to callback1(this, `&CLASSNAME`::[@3 m], [@3 arg]).&]
+[s7; [%-*C@3 m]-|Name of method.&]
[s7; [%-*C@3 arg]-|Additional parameter.&]
[s3; &]
[s4; &]
[s0;:`:`:THISBACK2`(m`, a`, b`):%- [* THISBACK2]([*@3 m], [*@3 a], [*@3 b])&]
-[s2; Expands to callback2(this, `&CLASSNAME`::[@3 x], [@3 a],[@3 b]).&]
+[s2; Expands to callback2(this, `&CLASSNAME`::[@3 m], [@3 a],[@3 b]).&]
[s7; [%-*C@3 m]-|Name of method.&]
[s7; [%-*C@3 a]-|First additional parameter.&]
[s7; [%-*C@3 b]-|Second additional parameter.&]
[s3; &]
[s4; &]
-[s0;:`:`:PTEBACK`(x`):%- [* PTEBACK]([*@3 x])&]
-[s2; Expands to pteback(this, `&CLASSNAME`::[@3 x]).&]
-[s7; [%-*C@3 x]-|Name of method.&]
+[s0;:`:`:PTEBACK`(m`):%- [* PTEBACK]([*@3 m])&]
+[s2; Expands to pteback(this, `&CLASSNAME`::[@3 m]).&]
+[s7; [%-*C@3 m]-|Name of method.&]
[s3; &]
[s4; &]
-[s0;:`:`:PTEBACK1`(x`, arg`):%- [* PTEBACK1]([*@3 x], [*@3 arg])&]
-[s2; Expands to pteback1(this, `&CLASSNAME`::[@3 x], [@3 arg]).&]
-[s7; [%-*C@3 x]-|Name of method.&]
+[s0;:`:`:PTEBACK1`(m`, arg`):%- [* PTEBACK1]([*@3 m], [*@3 arg])&]
+[s2; Expands to pteback1(this, `&CLASSNAME`::[@3 m], [@3 arg]).&]
+[s7; [%-*C@3 m]-|Name of method.&]
[s7; [%-*C@3 arg]-|Additional parameter.&]
[s3; &]
[s4; &]
[s0;:`:`:PTEBACK2`(m`, a`, b`):%- [* PTEBACK2]([*@3 m], [*@3 a], [*@3 b])&]
-[s2; Expands to pteback2(this, `&CLASSNAME`::[@3 x], [@3 a],[@3 b]).&]
+[s2; Expands to pteback2(this, `&CLASSNAME`::[@3 m], [@3 a],[@3 b]).&]
[s7; [%-*C@3 m]-|Name of method.&]
[s7; [%-*C@3 a]-|First additional parameter.&]
[s7; [%-*C@3 b]-|Second additional parameter.&]
Re: Fixes to "Callback macros" documentation [message #43590 is a reply to message #43588] Thu, 11 September 2014 08:20 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks, applied.

Mirek
Previous Topic: Help Topic "Installing OpenSSL"
Next Topic: T++ does not work with typedef enum {}
Goto Forum:
  


Current Time: Thu Mar 28 10:01:43 CET 2024

Total time taken to generate the page: 0.00991 seconds