From c83e5d2713334d39bf0718f626cab387f7331a98 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 17 Jul 2025 17:13:45 +0200 Subject: Added exposed C functions to Lua embed --- c-embed-lua/hi.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'c-embed-lua/hi.lua') diff --git a/c-embed-lua/hi.lua b/c-embed-lua/hi.lua index fb6621c..1f2c072 100644 --- a/c-embed-lua/hi.lua +++ b/c-embed-lua/hi.lua @@ -104,3 +104,10 @@ for line in file:lines() do end file:close() + +-- Exposing C functions. + +header("Exposing C functions") + +local result = c_sum(3, 5) +print("Sum is", result) -- cgit v1.2.3