1 /** \file
2  * \brief Lua Binding Control
3  *
4  * See Copyright Notice in cd.h
5  */
6 
7 module cd.lua;
8 
9 import cd.cd: cdCanvas;
10 
11 extern (C) @safe nothrow:
12 
13 struct lua_State;
14 
15 /* utilities */
16 cdCanvas* cdlua_getcanvas();        /* pos=1, deprecated use cdlua_checkcanvas */
17 cdCanvas* cdlua_checkcanvas(int pos);
18 void cdlua_pushcanvas(cdCanvas* canvas);
19 
20 int cdlua_open(lua_State *L);
21 int cdlua_close(lua_State *L);
22 
23 /* utilities */
24 cdCanvas* cdlua_getcanvas(lua_State * L); /* pos=1, deprecated use cdlua_checkcanvas */
25 cdCanvas* cdlua_checkcanvas(lua_State * L, int pos);
26 void cdlua_pushcanvas(lua_State * L, cdCanvas* canvas);
27