We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd6cbbb commit 39ec63aCopy full SHA for 39ec63a
2 files changed
_includes/chaiscriptexample.md
@@ -0,0 +1,21 @@
1
+``` cpp
2
+// Using ChaiScript is easy!
3
+
4
+#include <chaiscript/chaicript.hpp>
5
6
+std::string helloWorld(const std::string &t_name)
7
+{
8
+ return "Hello " + t_name + "!";
9
+}
10
11
+int main()
12
13
+ chaiscript::ChaiScript chai;
14
+ chai.add(chaiscript::fun(&helloWorld), "helloWorld");
15
16
+ chai.eval("puts(helloWorld(\"Bob\"));");
17
18
19
20
21
+```
index.html
@@ -31,4 +31,7 @@
31
32
</ul>
33
34
35
+{% include chaiscriptexample.md %}
36
37
</body>
0 commit comments