Call a foreign-language function: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Changed to Wren S/H) |
|||
Line 2,839: | Line 2,839: | ||
Although RC task solutions are usually written for execution by Wren CLI, the language's main purpose is for embedding and the embedding API is written in C. It is therefore a relative easy matter to call a C function from Wren after first embedding the latter in a suitable C program. |
Although RC task solutions are usually written for execution by Wren CLI, the language's main purpose is for embedding and the embedding API is written in C. It is therefore a relative easy matter to call a C function from Wren after first embedding the latter in a suitable C program. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">/* call_foreign_language_function.wren */ |
||
class C { |
class C { |
||
Line 2,939: | Line 2,939: | ||
Hello World! |
Hello World! |
||
</pre> |
</pre> |
||
=={{header|X86-64 Assembly}}== |
=={{header|X86-64 Assembly}}== |
||
===UASM 2.52=== |
===UASM 2.52=== |