mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-16 09:59:24 +08:00
6c8080043f
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2405 bbd45198-f89e-11dd-88c7-29a3b14d5316
27 lines
569 B
C
27 lines
569 B
C
/**
|
|
* External library
|
|
*/
|
|
|
|
#ifndef __LEXLIBS_H__
|
|
#define __LEXLIBS_H__
|
|
|
|
/* Arduino library source - larduinolib.c is placed in ART's directories */
|
|
#if defined(RT_LUA_USE_ARDUINOLIB)
|
|
#define EXLIB_ARDUINO "arduino"
|
|
#define ROM_EXLIB_ARDUINO \
|
|
_ROM(EXLIB_ARDUINO, luaopen_arduino, arduino_map)
|
|
#else
|
|
#define ROM_EXLIB_ARDUINO
|
|
#endif
|
|
|
|
#define EXLIB_EXAMPLE "example"
|
|
#define ROM_EXLIB_EXAMPLE \
|
|
_ROM(EXLIB_EXAMPLE, luaopen_example, example_map)
|
|
|
|
#define LUA_EXLIBS_ROM \
|
|
ROM_EXLIB_EXAMPLE \
|
|
ROM_EXLIB_ARDUINO
|
|
|
|
#endif
|
|
|