Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

entrylist_driver.h File Reference


Detailed Description

entry-list lua extensions.

Author:
Benjamin Gerard <ben@sashipa.com>
Date:
2002/10/23
Id
entrylist_driver.h,v 1.5 2003/03/19 05:16:16 ben Exp

#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.


Define Documentation

#define EL_FUNCTION_START name   ) 
 

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; \
    }

#define GET_ENTRYLIST EL,
 ) 
 

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