#include <stdio.h>
#include "lua.h"
#include "any_driver.h"
#include "allocator.h"
#include "entrylist.h"
Go to the source code of this file.
Defines | |
#define | DRIVER_NAME "entrylist" |
entry-list driver name. | |
#define | EL_FUNCTION_DECLARE(name) int lua_entrylist_##name(lua_State * L) |
#define | EL_FUNCTION_START(name) |
#define | EL_FUNCTION_END() } |
#define | GET_ENTRYLIST(EL, N) |
Functions | |
int | lua_entrylist_init (lua_State *L) |
Variables | |
int | entrylist_tag |
entry-list user tag. | |
allocator_t * | lists |
Holds all entrylist. | |
allocator_t * | entries |
Holds standard entries. | |
any_driver_t | entrylist_driver |
The driver. |
|
Value: int lua_entrylist_##name(lua_State * L) \ { \ el_list_t * el; \ if (lua_tag(L, 1) != entrylist_tag) { \ printf("el_" #name " : first parameter is not an entry-list\n"); \ return 0; \ } \ if (el = lua_touserdata(L, 1), !el) { \ printf("el_" #name " : Null pointer.\n"); \ return 0; \ } |
|
Value: if (lua_tag(L, N) != entrylist_tag) { \ printf("%s : parameter #%d is not an entry-list\n",__FUNCTION__, N); \ return 0; \ } \ if ((EL) = lua_touserdata(L, 1), !(EL)) { \ printf("%s : parameter #%d, null pointer.\n", __FUNCTION__, N); \ return 0; \ } |
dcplaya documentation version 2.0 | Generated on November 2004 by doxygen 1.3.6 |