newLISP ctypes module

Q&A's, tips, howto's
Post Reply
Posts: 43
Joined: Wed May 21, 2014 4:40 pm

newLISP ctypes module

Post by ryuo »

I have been working on a module to assist with mapping types from the C programming language to newLISP. The idea is to have an API that can help translate sections of the C API by providing aliases for C types and convenient lambda macros for mapping user-defined types. Currently, the only user-defined type that has a lambda macro is enumerated types. The define-enum function creates a set of integer constants that mimic the behavior of C enumerated types as much as possible. The source is available here: ... ctypes.lsp

It would be nice if at least part of this module could be added to the official newLISP distribution. However, I am happy to just use it for my own modules. The module still needs more work, but it does include the few things I have found missing from the newLISP API for C types and such. Thanks for reading.

Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Re: newLISP ctypes module

Post by Lutz »

There is now a link to your modules on this page:

Post Reply