From 8177633357add8f7433598251aa63c610dfdd284 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Fri, 25 Oct 2024 10:52:43 +1000 Subject: Added an example in C. B-) --- test_.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test_.lua b/test_.lua index d29a433..d305eb8 100755 --- a/test_.lua +++ b/test_.lua @@ -96,6 +96,17 @@ __[[#!/bin/bash ]]:log():show():Do() print('') +__[[#!/usr/bin/tcc -run + #include + + int main() + { + printf("Hello world from C.\n"); + return 0; + } +]]:log():show():Do() +print('') + __[[#!/usr/bin/env luajit print('Hello ' .. "world " .. [=[from]=] .. " Lua.") ]]:log():show():Do() -- cgit v1.1