From 22f5ac8fcec4dbfcc1f5033f18bc4eeca52a747d Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Tue, 31 Oct 2023 08:20:22 +0100 Subject: Made the side more retro! --- public/extend-lua-with-custom-c.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'public/extend-lua-with-custom-c.html') diff --git a/public/extend-lua-with-custom-c.html b/public/extend-lua-with-custom-c.html index 38091db..1ee6f41 100755 --- a/public/extend-lua-with-custom-c.html +++ b/public/extend-lua-with-custom-c.html @@ -1,9 +1,12 @@ -Extend Lua with custom C functions using Clang

Extend Lua with custom C functions using Clang

note, May 23, 2023 on Mitja Felicijan's blog

Here is a boilerplate for extending Lua with custom C functions. This requires Clang and Lua 5.1 to be installed. GCC can be used instead of Clang, but the Makefile will need to be modified.

  • nativefunc.c

    #include <lua.h>
     #include <lauxlib.h>
    @@ -31,7 +34,7 @@ Makefile will need to be modified.
    • nativefunc.c

      
       clean:
         rm *.so
      -

Posts from blogs I follow around the net


Posts from blogs I follow around the net

  • One reason that ZFS can't turn a directory into a filesystemChris's Wiki :: blog
    One of the wishes that I and other people frequently have for ZFS is the ability to take an existing directory (and everything underneath it) in a ZFS filesystem and turn it into a sub-filesystem of its own. One reason for wanting this is that a number of things @@ -63,8 +66,7 @@ In this article, I describe my goals, which hardware I picked for my new build ( Design Goals I use my netw…

Generated with openring.

\ No newline at end of file +catch up with me on Telegram.

This website does not track you. Content is made available under the CC BY 4.0 license unless +specified otherwise. Blog is also available as RSS feed. \ No newline at end of file -- cgit v1.2.3