ScummVM API documentation
lauxlib.h
1 /*
2 ** Auxiliary functions for building Lua libraries
3 ** See Copyright Notice in lua.h
4 */
5 
6 
7 #ifndef GRIM_AUXLIB_H
8 #define GRIM_AUXLIB_H
9 
10 
11 #include "engines/grim/lua/lua.h"
12 
13 namespace Grim {
14 
15 struct luaL_reg {
16  const char *name;
17  lua_CFunction func;
18 };
19 
20 struct luaL_libList {
21  luaL_reg *list;
22  int32 number;
23  luaL_libList *next;
24 };
25 
26 extern luaL_libList *list_of_libs;
27 
28 #define luaL_arg_check(cond, numarg, extramsg) if (!(cond)) luaL_argerror(numarg,extramsg)
29 
30 void luaL_openlib(luaL_reg *l, int32 n);
31 void luaL_addlibtolist(luaL_reg *l, int32 n);
32 void luaL_argerror(int32 numarg, const char *extramsg);
33 const char *luaL_check_string(int32 numArg);
34 const char *luaL_opt_string(int32 numArg, const char *def);
35 float luaL_check_number(int32 numArg);
36 float luaL_opt_number(int32 numArg, float def);
37 lua_Object luaL_functionarg(int32 arg);
38 lua_Object luaL_tablearg(int32 arg);
39 lua_Object luaL_nonnullarg(int32 numArg);
40 void luaL_verror(const char *fmt, ...);
41 char *luaL_openspace(int32 size);
42 void luaL_resetbuffer();
43 void luaL_addchar(int32 c);
44 void luaL_addsize(int32 n);
45 int32 luaL_newbuffer(int32 size);
46 void luaL_oldbuffer(int32 old);
47 char *luaL_buffer();
48 
49 } // end of namespace Grim
50 
51 #endif
Definition: lauxlib.h:20
Definition: actor.h:33
Definition: lauxlib.h:15