On se bouge, on signe la pétition en masse :
— Non c’est Non, Monsieur Duplomb !
— Pour la santé, la sécurité, l’intelligence collective.

👨‍💻 about me home CV/Resume News 🖊️ Contact Codeberg Github LinkedIn 🏆 Best of LuaX (tools) pub bang ypp panda lsvg ldc yreq Fizzbuzz Calculadoira TPG picfg Belenos (intro) 🔀 Git Repos

Made in Europe

Lua / CPP interface

Lua / CPP interface

lcpp uses cpp to preprocess C header files and extract #define'd constants.

Usage

lcpp = require "lcpp"

constants = lcpp.include("foo.h", {"inc"})

for name, val in pairs(constants) do
    print(name, val)
end

The include function takes two parameters:

  1. name of the header file to parse
  2. optional list of directories to search for header files

and returns a table with all the constants defined in the main header file.

Tests

make test

This site is powered by LuaX, bang, ypp, cdsoft.css and Pandoc.

Mirrors: cdelord.frchristophe.delord.free.frcdsoft.codeberg.page