ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

lauxlib.h

Go to the documentation of this file.
00001 /*
00002 ** Auxiliary functions for building Lua libraries
00003 ** See Copyright Notice in lua.h
00004 */
00005 
00006 
00007 #ifndef GRIM_AUXLIB_H
00008 #define GRIM_AUXLIB_H
00009 
00010 
00011 #include "engines/grim/lua/lua.h"
00012 
00013 namespace Grim {
00014 
00015 struct luaL_reg {
00016     const char *name;
00017     lua_CFunction func;
00018 };
00019 
00020 struct luaL_libList {
00021     luaL_reg *list;
00022     int32 number;
00023     luaL_libList *next;
00024 };
00025 
00026 extern luaL_libList *list_of_libs;
00027 
00028 #define luaL_arg_check(cond, numarg, extramsg) if (!(cond)) \
00029     luaL_argerror(numarg,extramsg)
00030 
00031 void luaL_openlib(luaL_reg *l, int32 n);
00032 void luaL_addlibtolist(luaL_reg *l, int32 n);
00033 void luaL_argerror(int32 numarg, const char *extramsg);
00034 const char *luaL_check_string(int32 numArg);
00035 const char *luaL_opt_string(int32 numArg, const char *def);
00036 float luaL_check_number(int32 numArg);
00037 float luaL_opt_number(int32 numArg, float def);
00038 lua_Object luaL_functionarg(int32 arg);
00039 lua_Object luaL_tablearg(int32 arg);
00040 lua_Object luaL_nonnullarg(int32 numArg);
00041 void luaL_verror(const char *fmt, ...);
00042 char *luaL_openspace(int32 size);
00043 void luaL_resetbuffer();
00044 void luaL_addchar(int32 c);
00045 void luaL_addsize(int32 n);
00046 int32 luaL_newbuffer(int32 size);
00047 void luaL_oldbuffer(int32 old);
00048 char *luaL_buffer();
00049 
00050 } // end of namespace Grim
00051 
00052 #endif


Generated on Sat Jul 20 2019 05:00:50 for ResidualVM by doxygen 1.7.1
curved edge   curved edge