lua lua解读

1、线程状态宏定义(thread status

#define LUA_OK 0

#define LUA_YIELD 1

#define LUA_ERRRUN 2

#define LUA_ERRSYNTAX 3

#define LUA_ERRMEM 4

#define LUA_ERRGCMM 5

#define LUA_ERRERR 6

2、基本类型(basic types

#define LUA_TNONE (-1) 

#define LUA_TNIL 0

#define LUA_TBOOLEAN 1

#define LUA_TLIGHTUSERDATA 2

#define LUA_TNUMBER 3

#define LUA_TSTRING 4

#define LUA_TTABLE 5

#define LUA_TFUNCTION 6

#define LUA_TUSERDATA 7

#define LUA_TTHREAD 8

#define LUA_NUMTAGS 9

 

原文地址:https://www.cnblogs.com/quansir/p/4724653.html