Lua interpreter now running inside companion!
This commit is contained in:
@@ -12,7 +12,9 @@
|
||||
#include <stddef.h>
|
||||
|
||||
// #define LUA_LIB
|
||||
#define USE_FATFS
|
||||
#if !defined(SIMU)
|
||||
#define USE_FATFS
|
||||
#endif
|
||||
|
||||
/*
|
||||
** ==================================================================
|
||||
@@ -443,14 +445,14 @@
|
||||
*/
|
||||
|
||||
/* the following operations need the math library */
|
||||
#if defined(lobject_c) || defined(lvm_c)
|
||||
//#if defined(lobject_c) || defined(lvm_c)
|
||||
#include <math.h>
|
||||
#define luai_nummod(L,a,b) ((a) - l_mathop(floor)((a)/(b))*(b))
|
||||
#define luai_numpow(L,a,b) (l_mathop(pow)(a,b))
|
||||
#endif
|
||||
//#endif
|
||||
|
||||
/* these are quite standard operations */
|
||||
#if defined(LUA_CORE)
|
||||
// #if defined(LUA_CORE)
|
||||
#define luai_numadd(L,a,b) ((a)+(b))
|
||||
#define luai_numsub(L,a,b) ((a)-(b))
|
||||
#define luai_nummul(L,a,b) ((a)*(b))
|
||||
@@ -460,7 +462,7 @@
|
||||
#define luai_numlt(L,a,b) ((a)<(b))
|
||||
#define luai_numle(L,a,b) ((a)<=(b))
|
||||
#define luai_numisnan(L,a) (!luai_numeq((a), (a)))
|
||||
#endif
|
||||
// #endif
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user