diff options
Diffstat (limited to 'src/auxiliar.h')
-rw-r--r-- | src/auxiliar.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/auxiliar.h b/src/auxiliar.h new file mode 100644 index 0000000..2681a84 --- /dev/null +++ b/src/auxiliar.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /*=========================================================================*\ | ||
2 | * Auxiliar routines for class hierarchy manipulation | ||
3 | * | ||
4 | * RCS ID: $Id$ | ||
5 | \*=========================================================================*/ | ||
6 | #ifndef AUX_H | ||
7 | #define AUX_H | ||
8 | |||
9 | #include <lua.h> | ||
10 | #include <lauxlib.h> | ||
11 | |||
12 | void aux_newclass(lua_State *L, const char *name, luaL_reg *func); | ||
13 | void aux_add2group(lua_State *L, const char *name, const char *group); | ||
14 | void *aux_checkclass(lua_State *L, const char *name, int objidx); | ||
15 | void *aux_checkgroup(lua_State *L, const char *group, int objidx); | ||
16 | void aux_setclass(lua_State *L, const char *name, int objidx); | ||
17 | |||
18 | /* min and max macros */ | ||
19 | #ifndef MIN | ||
20 | #define MIN(x, y) ((x) < (y) ? x : y) | ||
21 | #endif | ||
22 | #ifndef MAX | ||
23 | #define MAX(x, y) ((x) > (y) ? x : y) | ||
24 | #endif | ||
25 | |||
26 | #endif | ||