Skip to content

Commit 6173c34

Browse files
committed
Compiler: Update docs for add function call methods
1 parent 8e42c38 commit 6173c34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/engine/compiler.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void Compiler::preoptimize()
136136

137137
/*!
138138
* Adds a call to the given function.\n
139-
* For example: extern "C" bool some_block(double arg1, const char *arg2)
139+
* For example: extern "C" bool some_block(double arg1, const StringPtr *arg2)
140140
*/
141141
CompilerValue *Compiler::addFunctionCall(const std::string &functionName, StaticType returnType, const ArgTypes &argTypes, const Args &args)
142142
{
@@ -146,7 +146,7 @@ CompilerValue *Compiler::addFunctionCall(const std::string &functionName, Static
146146

147147
/*!
148148
* Adds a call to the given function with a target parameter.\n
149-
* For example: extern "C" bool some_block(Target *target, double arg1, const char *arg2)
149+
* For example: extern "C" bool some_block(Target *target, double arg1, const StringPtr *arg2)
150150
*/
151151
CompilerValue *Compiler::addTargetFunctionCall(const std::string &functionName, StaticType returnType, const ArgTypes &argTypes, const Args &args)
152152
{
@@ -156,7 +156,7 @@ CompilerValue *Compiler::addTargetFunctionCall(const std::string &functionName,
156156

157157
/*!
158158
* Adds a call to the given function with an execution context parameter.\n
159-
* For example: extern "C" bool some_block(ExecutionContext *ctx, double arg1, const char *arg2)
159+
* For example: extern "C" bool some_block(ExecutionContext *ctx, double arg1, const StringPtr *arg2)
160160
*/
161161
CompilerValue *Compiler::addFunctionCallWithCtx(const std::string &functionName, StaticType returnType, const ArgTypes &argTypes, const Args &args)
162162
{

0 commit comments

Comments
 (0)