Lua API for D language
D language modules for access to Lua API functions
Usage
- Clone this project by git clone https://github.com/maisvendoo/lua_d_api.git
- Copy all *.d files in your project foldel
- Import required libraris in your code
- Link programm with key '-llua'
For example:
module main;
import lua;
import lualib;
import lauxlib;
void main()
{
lua_State *L = lauL_newstate();
/* Write here your code for work with Lua */
lua_close(L);
}
You can use Lua API functions in your D program (same as in Lua C API)