We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5664ad commit 9047e62Copy full SHA for 9047e62
1 file changed
README.md
@@ -119,6 +119,7 @@ teascript::ValueObject calc_square( teascript::Context &rContext )
119
teascript::Engine engine;
120
121
// register a function as a callback. can use arbitrary names.
122
+// PRO TIPP: use a capturing lambda or std::bind to carry any user context with you.
123
engine.RegisterUserCallback( "squared", calc_square );
124
125
// execute the script which will call our function
0 commit comments