blob: 60582e6295c0e0c4389675a4d307526f7488227e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/** \file
* \brief Bindig of iupdial to Lua 3.
*
* See Copyright Notice in "iup.h"
*/
#include <stdlib.h>
#include "iup.h"
#include "iupcontrols.h"
#include <lua.h>
#include <lauxlib.h>
#include "iuplua.h"
#include "il.h"
#include "il_controls.h"
static void CreateDial(void)
{
int tag = (int)lua_getnumber(lua_getglobal("iuplua_tag"));
lua_pushusertag(IupDial(luaL_check_string(1)), tag);
}
int diallua_open(void)
{
lua_register("iupCreateDial", CreateDial);
#ifdef IUPLUA_USELOH
#ifdef TEC_BIGENDIAN
#ifdef TEC_64
#include "loh/dial_be64.loh"
#else
#include "loh/dial_be32.loh"
#endif
#else
#ifdef TEC_64
#ifdef WIN64
#include "loh/dial_le64w.loh"
#else
#include "loh/dial_le64.loh"
#endif
#else
#include "loh/dial.loh"
#endif
#endif
#else
iuplua_dofile("luadial.lua");
#endif
return 1;
}
|