Robots/Wren: Difference between revisions
m
Minor tidy
m (→Code: Fixed syntax highlighting.) |
m (Minor tidy) |
||
Line 7:
{{works with|Ubuntu 20.04}}
An embedded script so we can use the ncurses library.
<syntaxhighlight lang="
import "./dynamic" for Struct
Line 301:
<br>
We now embed this in the following C program, build and run it.
<syntaxhighlight lang="c">/* gcc
#include <stdio.h>
Line 498:
WrenVM* vm = wrenNewVM(&config);
const char* module = "main";
const char* fileName = "
char *script = readFile(fileName);
WrenInterpretResult result = wrenInterpret(vm, module, script);
|