2012-11-10 15:32:39 +08:00
|
|
|
/**
|
|
|
|
* External library
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LEXLIBS_H__
|
|
|
|
#define __LEXLIBS_H__
|
|
|
|
|
2012-11-13 15:43:55 +08:00
|
|
|
/* Arduino library source - larduinolib.c is placed in ART's directories */
|
|
|
|
#if defined(RT_LUA_USE_ARDUINOLIB)
|
2012-11-10 15:32:39 +08:00
|
|
|
#define EXLIB_ARDUINO "arduino"
|
2012-11-13 15:43:55 +08:00
|
|
|
#define ROM_EXLIB_ARDUINO \
|
|
|
|
_ROM(EXLIB_ARDUINO, luaopen_arduino, arduino_map)
|
|
|
|
#else
|
|
|
|
#define ROM_EXLIB_ARDUINO
|
|
|
|
#endif
|
2012-11-10 15:32:39 +08:00
|
|
|
|
2012-11-13 15:43:55 +08:00
|
|
|
#define EXLIB_EXAMPLE "example"
|
|
|
|
#define ROM_EXLIB_EXAMPLE \
|
|
|
|
_ROM(EXLIB_EXAMPLE, luaopen_example, example_map)
|
2012-11-10 15:32:39 +08:00
|
|
|
|
2012-11-13 15:43:55 +08:00
|
|
|
#define LUA_EXLIBS_ROM \
|
|
|
|
ROM_EXLIB_EXAMPLE \
|
|
|
|
ROM_EXLIB_ARDUINO
|
2012-11-10 15:32:39 +08:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|